基本调用,得到name 属性
<select ng-model="target" ng-options="obj.name as obj.name for obj in [{ name: ‘a‘, id: 1 }, { name: ‘b‘, id: 2 }]"></select>
时间: 2024-10-12 04:32:25
基本调用,得到name 属性
<select ng-model="target" ng-options="obj.name as obj.name for obj in [{ name: ‘a‘, id: 1 }, { name: ‘b‘, id: 2 }]"></select>