<select name="" ng-model="state" ng-options="opt.cmd as opt.desc for opt in ctrlState4Qry">
<option value="">-请选择-</option></select>
直接在select里面用ng-repeat不行么
ng-repeat 有个问题,我没用。
你是这个意思吧?
<select
class="select_c" style="width:300px" x-ng-model="state">
<option value="">--</option>
<option x-ng-repeat="opt in ctrlState4Qry" x-ng-value="opt.cmd" x-ng-bind="opt.desc"></option>
</select>
这个似乎无法编辑啊。
我查了一下stackoverflow的说明
http://stackoverflow.com/questions/16214622/angularjs-select-directive-not-working-with-option
我是这样用的,可能是还有其他问题吧