可以在 onSelect 委托中重置 maxdate 属性吗?
如果我能做这样的事情就完美了:
$(".date-picker").datepicker({
maxDate: someDate,
onSelect: function (date) {
if(somecondition is true) {
maxDate = someotherDate;
}
//some other functionality goes here,
}
});