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 = '该输入项为必输项';
用对方法才有效率,做对事情才有效果
“麻烦”是自己“处理”不当的结果
“困难”是自己“学习”不够的反射
“挫折”是自己“努力”不足的代价
“麻烦”是自己“处理”不当的结果
“困难”是自己“学习”不够的反射
“挫折”是自己“努力”不足的代价