I am using AngularJS $http to get data and creating a list of objects from the data returned.(我正在使用AngularJS $ http来获取数据并根据返回的数据创建对象列表。)
When the page loads $http gets and returns the data successfully.(页面加载时,$ http会成功获取并返回数据。) How do retrieve the data again without refreshing the page?(如何在不刷新页面的情况下再次检索数据?)
$http.get("files/data.json")
.then(function (response) {
// javascript to assign returned data to list of objects
}).catch(function (response) {
console.log("error");
});
ask by Jigoro Kano translate from so
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…