zoukankan      html  css  js  c++  java
  • easyui时间控件设置为可清空——jquery-easyui-1.3.3(这个版本还没有buttons,网上的好多博文都是1.3.5之后的版本)

    效果图:

    更改的源码jquery.easyui.min.js 11358行:

    var _858=$("<div class="datebox-button"></div>").appendTo(_856);
    $("<a href="javascript:void(0)" class="datebox-current"></a>").html(opts.currentText).appendTo(_858);
    $("<a href="javascript:void(0)" class="datebox-clean"></a>").html(opts.cleanText).appendTo(_858);
    $("<a href="javascript:void(0)" class="datebox-close"></a>").html(opts.closeText).appendTo(_858);
    _858.find(".datebox-current,.datebox-clean,.datebox-close").hover(function(){
    $(this).addClass("datebox-button-hover");
    },function(){
    $(this).removeClass("datebox-button-hover");
    });
    _858.find(".datebox-current").click(function(){
    _854.calendar.calendar({year:new Date().getFullYear(),month:new Date().getMonth()+1,current:new Date()});
    });
    _858.find(".datebox-clean").click(function(){    //clean——新增清空
    $(_853).combo('setText','');  
    $(_853).combo('setValue',''); 
    $(_853).combo("hidePanel");
    });
    _858.find(".datebox-close").click(function(){
    $(_853).combo("hidePanel");
    });
    };
    };

    jquery.easyui.min.js 11441行:

    }},currentText:"Today",cleanText:"Clean",closeText:"Close",okText:"Ok",formatter:function(date){

    更改easyui-lang-zh_CN.js,41行增加:$.fn.datebox.defaults.cleanText = '清空';

    完成。

  • 相关阅读:
    O-C相关-06:对象与对象的关系
    O-C相关05:方法的封装.
    O-C相关04:类方法的概述与定义和调用
    Objective-C发展历史
    O-C相关-03:面向对象概念的具体介绍
    OC相关-02:oc和c的基本差异
    0-C相关01:NSlog函数介绍。
    鞭辟入里
    objective-c中字符串长度计算
    OC多文件开发介绍
  • 原文地址:https://www.cnblogs.com/tldxh/p/9025363.html
Copyright © 2011-2022 走看看