标签:turn handler setvalue dep [] default jquery text ant
//给datebox添加清空按钮 $.fn.datebox.defaults.cleanText = ‘清空‘; (function ($) { var buttons = $.extend([], $.fn.datebox.defaults.buttons); buttons.splice(1, 0, { text: function (target) { return $(target).datebox("options").cleanText }, handler: function (target) { $(target).datebox("setValue", ""); $(target).datebox("hidePanel"); } }); $.extend($.fn.datebox.defaults, { buttons: buttons }); })(jQuery)
直接添加在文档末尾即可
标签:turn handler setvalue dep [] default jquery text ant
原文地址:https://www.cnblogs.com/sentongxue/p/9752998.html