调试后,status对象似乎正在绑定到我的模型。但是我需要把字符串绑定到我的模型上。
$scope.Statuses = [
{name:'Not Started', value: 'Not Started'},
{name:'In Progress', value: 'In Progress'},
{name:'Completed', value: 'Completed'}
];
<select class="form-control" ng-model="counterMeasure.Status" ng-options="status.name for status in Statuses"></select>发布于 2015-03-12 10:09:24
https://stackoverflow.com/questions/29006401
复制相似问题