我有一個代碼: <select ng-options="i.id as i.os_version for i in devices"
ng-model="selected_version_os_to"
ng-change="selectVersion(i.id)">
<option value=''> Select version</option>
</sele
由於某種原因,這根本不會過濾任何東西。 下面是選擇: <select
ng-model="s.id"
ng-options="c.v as c.name for c in oarray | filter:{v:0}"
>
</select>
這是結構: $scope.oarray = [{ name:"(select)", v:0 },{ name:"name1", v