更新时间:2023-02-01 11:20:21
您总是可以只做到这一点:
You could always just do this:
<select ng-model="selectedCountry" ng-change="updateSelectedCountry(selectedCountry)" class="form-control">
<option>Anywhere</option>
<option ng-repeat="country.country for country in countries">{{country.country}}
</option>
</select>
下面是我的小提琴例如
希望这有助于!