angularjs select经过动态加载option有空白项

<select ng-model="countrys" ng-init="countrys=countries[0]" ng-options="country.name for country in countries"></select>

 只须要添加ng-init就能够进行处理 javascript

相关文章
相关标签/搜索