我有这个dateTime - picker,现在我只允许(所有)星期一:
<input type="text"
class="form-control scheduleFrom"
name="scheduleFrom"
ng-model="vm.scheduleIntervalContainerWeeksFrom"
datepicker-popup="dd.MM.yyyy"
is-open="vm.openedDatePickerFrom"
close-text="schließen"
current-text="heute"
clear-text="löschen"
date-disabled="vm.disabledFrom(date, mode)">
目前这是我的禁用功能:
vm.disabledFrom = function(date, mode) {
return mode === 'day' && date < vm.scheduleIntervalContainerWeeksFrom;
};
感谢任何提示
答案 0 :(得分:2)
答案 1 :(得分:0)
尝试以下链接,它可能会有所帮助 - http://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_date_weekday