该网站令人困惑!如何在此之前禁用几天?
angular-ui.github.io/bootstrap/(ctrl + f mindate)
答案 0 :(得分:0)
将其放入控制器
var date = new Date();
$scope.minDate = date.setDate((new Date()).getDate());
并在日期选择器中设置min-date =“minDate”
<datepicker name="date" ng-model="dt" min-date="minDate" format-day='d' max-mode="day" min-date="minDate" show-weeks="false"></datepicker>