我在我的項目中使用「datepicker」插件,它設置爲十年視圖,並且我想禁用未來日期,因爲我已經使用了maxDate
選項,但它是不工作,我的代碼:minDate和maxDate選項不能在datepicker中工作
$('#data_1 .input-group.date').datepicker({
todayBtn: "linked",
maxDate: "0",
keyboardNavigation: false,
forceParse: false,
calendarWeeks: true,
autoclose: true
});
試圖與0
和new Date
我嘗試在API的網站:HTTPS://uxsolutions.github。 io/bootstrap-datepicker /;如果你今天在結束日期輸入它的生成 - endDate:「今天」 - 所以嘗試刪除maxDate並添加endDate:「今天」 – sixerss