0
我正在使用引導日期選擇器控件來顯示日期。我想在日期選擇器中隱藏以前的日期。怎麼做?如何在引導日期選擇器中隱藏以前的日期?
我正在使用引導日期選擇器控件來顯示日期。我想在日期選擇器中隱藏以前的日期。怎麼做?如何在引導日期選擇器中隱藏以前的日期?
使用本
var date = new Date();
date.setDate(date.getDate()-1);
$('#sandbox-container input').datepicker({
autoclose: true,
startDate: date
});
http://stackoverflow.com/questions/16123056/bootstrap-datepicker-disabling-past-dates-without-current-date – Farhan
可能重複[如何限制Bootstrap Datepicker中的可選日期範圍?](http://stackoverflow.com/questions/11933173/how-to-restrict-the-selectable-date-ranges-in-bootstrap-datepicker) –