jsp文件中:
<select class="dropdown" ng-model="projectMaterial.orderMaterial" datatype="*" sucmsg=" "
ng-options="option.key as option.name for option in orderMaterialOptions">
<option value="">选择</option>
</select>
js文件中:
$scope.orderMaterialOptions = [
{
key:
'yes'
,
name:
'订制品'
},
{
key:
'no'
,
name:
'非定制品'
}
];