easyui 1.3.6 datebox 加清除按钮

}}, currentText: "Today", closeText: "Close", okText: "Ok", clearText: "Clear", buttons: [{
    text: function (_945) {
return $(_945).datebox("options").currentText;
},handler:function(_946){
$(_946).datebox("calendar").calendar({year:new Date().getFullYear(),month:new Date().getMonth()+1,current:new Date()});
_935(_946);
}},{text:function(_947){
return $(_947).datebox("options").closeText;
},handler:function(_948){
$(this).closest("div.combo-panel").panel("close");
}},{
    text: function (_947111) {
        return $(_947111).datebox("options").clearText;
    }, handler: function (_948111) {
        $(_948111).combo("setValue", "");
        $(_948111).combo("setText", "");
        $(this).closest("div.combo-panel").panel("close");
    }
}], formatter: function (date) {

jquery.easyui.min.js 里增加上面红色的代码

easyui-lang-zh_CN.js 里增加下面红色的代码

if ($.fn.datebox){
    $.fn.datebox.defaults.currentText = '今天';
    $.fn.datebox.defaults.closeText = '关闭';
    $.fn.datebox.defaults.okText = '确定';
    $.fn.datebox.defaults.clearText = '清除';
    $.fn.datebox.defaults.missingMessage = '该输入项为必输项';

 

posted @ 2014-08-26 15:35  英雄饶命啊  阅读(358)  评论(0)    收藏  举报