给easyui的datebox控件添加清空按钮的实现方法
2017-02-06
18
在不改源码的前提下给datebox添加清空按钮var buttons = $.extend([], $.fn.datebox.defaults.buttons);buttons.splice(1, 0, {text: "清空",handler : function(target) {$(target).combo("setValue", "").combo("setText", ""); // 设置空值$(target).combo("hidePanel"...