我正在尝试使用 jquery-ui 的日期选择器来实现事件日历。我已经成功安装了日期选择器并且它显示并工作。当我尝试注册时出现问题beforeShowDay
处理程序。像这样:
$('#datePicker').datepicker({ beforeShowDay : function(){ }} );
我在 jquery-ui -file 中收到以下错误:ba is undefined
。
当我在函数中输出某些内容时,前四次它会输出,但随后我收到错误。
$('#datePicker').datepicker({ beforeShowDay : function(){ console.log('test') }} );
Output:
// test
// test
// test
// test
// ba is undefined
如果有人知道出了什么问题,请帮忙。
你必须添加这个return [true,'']
像这样
$('#datePicker').datepicker({
beforeShowDay: function(date) {
console.log('test');
return [true,''];
}
});
Ref.
http://osdir.com/ml/jquery-ui/2009-02/msg00349.html http://osdir.com/ml/jquery-ui/2009-02/msg00349.html
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)