【发布时间】:2016-01-19 20:58:46
【问题描述】:
我正在使用Date Range Picker for 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,但仍然没有运气。
【问题讨论】:
标签: javascript angularjs daterangepicker