<input id="datepicker">
var picker = new Pikaday({
disableDayFn: function(date){
// Disable Monday
return date.getDay() === 1;
},
field: document.getElementById('datepicker')
});
目前上面的代码禁用了一天,我希望它禁用两天。请帮我整理一下
示例:JsFiddle:http: //jsfiddle.net/jpwk4wpv/