两种写法
<select>
<option value="x.id" ng-repeat="x in list" ng-bind="x.name">
</option>
</select>
<select ng-options="x.id as x.name for x in list" ng-model="listId">
</select>
其中options分别对应value和bing
只有一个属性的时候可以 x.id as x.id
两种写法
<select>
<option value="x.id" ng-repeat="x in list" ng-bind="x.name">
</option>
</select>
<select ng-options="x.id as x.name for x in list" ng-model="listId">
</select>
其中options分别对应value和bing
只有一个属性的时候可以 x.id as x.id