【发布时间】:2014-01-16 17:43:32
【问题描述】:
我有一个网页使用
app.controller('listCtrl', function ($scope, $http) {
$http.get("http://data.com/?region=north").success(function (data) {
$scope.properties = data;
});
});
点击按钮后,我想从不同的 URL 重新加载源代码
$http.get("http://data.com/?region=south").success(function (data) {
$scope.properties = data;
});
有没有办法做到这一点?
【问题讨论】: