<select id="selectDuration" name="selectDuration" required ui-
select2="select2DurationSettings" ng-model="duration" ng-
change="loadSensoryEvents()">
此持续时间值未更新
这是我的JS文件
最佳答案
使用对象并在控制器中声明对象
$scope.selected = {};
HTML
<select id="selectDuration" name="selectDuration" required ui-
select2="select2DurationSettings" ng-model="selected.duration" ng-
change="loadSensoryEvents()">