我正在使用Bootstrap 的日期范围选择器来选择日期范围,一切看起来都很好,我唯一的问题是,在我选择了日期并提交表单之后,我不知道如何获取值(日期) 我选了。
下面你可以看到我的daterangepicker
设置:
<input ui-jq="daterangepicker" ui-options="{
format: 'DD-MM-YYYY',
startDate: '{{ first }}',
endDate: '{{ second }}',
separator: ' til ',
showWeekNumbers: true,
locale: {
applyLabel: 'Vælg datoer',
cancelLabel: 'Annuller',
fromLabel: 'Fra',
toLabel: 'Til',
firstDay: 1
}
}" ng-model="plane.date" class="form-control" placeholder="Dato" />
如您所见,我尝试添加ng-model
,但仍然没有运气。