参考资料地址
搜索了N多个,也参考了其他人的博客
https://blog.csdn.net/u010297791/article/details/76468025
https://blog.csdn.net/weixin_30430169/article/details/96022649
禁用当日之前的日子
$('[data-plugin="datepicker"]').datepicker({
startDate : new Date()
});
禁用当天之后的日期
$('[data-plugin="datepicker"]').datepicker({
endDate : new Date()
});
禁用一周的一些时间
daysOfWeekDisabled:[0,6],
[1]就是禁用周一.
[0,6]就是禁用了周末
比较坑的是.周末是0.0~6代表周日到周六