angualr设置select默认值

<select ng-model="searchData.state" class="form-control" ng-init="searchData.state=10001" ng-options="item.state as item.name for item in selectStatusData" id="rootStatus">
</select>
 
 
 
这里是设置value为10001的默认显示
posted @ 2017-12-08 16:10  丁丶丁  阅读(667)  评论(0编辑  收藏  举报