由于某些原因,我必须这样编码:
<select ng-model="value" ng-options = "item.value as item.label for item in item">
<option value="">all</option>
</select>
但是当我迁移到angularjs1.5时,ngOptions将option(值是空字符串)更改为:
<option value="?" selected="selected"></option>
<option value class>all</option>
<option label="yes" value="string:true">yes</option>
<option label="no" value="string:false">no</option>
,并且选项的值更改为null
,我不希望null
,而是将modelValue设置为''
($scope.value = ''
),select
无法选择all
选项,该怎么做才能使选择区分开''