angular : ng-options
基本调用,得到name 属性
<select ng-model="target" ng-options="obj.name as obj.name for obj in [{ name: 'a', id: 1 }, { name: 'b', id: 2 }]"></select>
基本调用,得到name 属性
<select ng-model="target" ng-options="obj.name as obj.name for obj in [{ name: 'a', id: 1 }, { name: 'b', id: 2 }]"></select>