答案 0 :(得分:2)
您可以使用$http service,例如:
var servlet_url = "...";
$http.get(servlet_url)
.then(function(response) {
$scope.myList = response.data;
$scope.data = { selected: $scope.myList[0] };
});
然后使用ngOptions directive将<select>
绑定到从servlet检索到的数据:
<select ng-model='data.selected' ng-options='item in myList'></select>