答案 0 :(得分:0)
看起来这是小部件的正常行为。这是一个包含对无效日期检查的支持的功能:
/* Gets the current value
* @return Date The result or null if no date is present
* @throws If the entered value is invalid
*/
function getDate(datePicker) {
datePicker = $(datePicker);
var format = datePicker.datepicker("option", "dateFormat"),
text = datePicker.val(),
settings = datePicker.datepicker("option", "settings");
return $.datepicker.parseDate(format, text, settings);
}