很简单,就像
$http.get('phones/phones.json').then(function(response) { $scope.phones = response.data;});
上一篇 在AngularJS中的页面之间传递数据+页面刷新
下一篇 Jasmine使用templateUrl测试AngularJS指令
版权所有 (c)2021-2022 MSHXW.COM
ICP备案号:晋ICP备2021003244-6号