我有一个简单的日历设置为通过pickadate.js。我怎样才能在日历上的每个星期天停用?我注意到它有一个disable:[],但不确定如何指定一天。
$('.datepicker').pickadate({
weekdaysShort: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],
showMonthsShort: true
})发布于 2013-10-04 01:56:05
文件上说
//Using integers representing days of the week (from 1 to 7):
$('.datepicker').pickadate({
disable: [
1, 4, 7
]
})因此,如果您想禁用sunday,那么:
$('.datepicker').pickadate({
weekdaysShort: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],
showMonthsShort: true,
disable: [7]
});https://stackoverflow.com/questions/19171909
复制相似问题