想要禁用星期日,
<input id="datepicker"> var picker = new Pikaday({
disableDayFn: function(date)
{
// Disable Monday return date.getDay() === 1;
}, field: ...
答案 0 :(得分:0)
$("#dp").datepicker({
beforeShowDay: function(date) {
var day = date.getDay();
return [(day != 0), ''];
}
});