在此链接中:http://www.w3schools.com/angular/tryit.asp?filename=try_ng_tables_index
$http.get("http://www.w3schools.com/angular/customers.php")
.then(function (response) {$scope.names = response.data.records;});
});
.then()
更改为success()
无效?因为我之前看到success(function(){})
有效。$scope.names = data
?