摘要: 在表格中显示数据 <div ng-app="myApp" ng-controller="customersCtrl"> <table> <tr ng-repeat="x in names"> <td>{{ x.Name }}</td> <td>{{ x.Country }}</td> </tr></ 阅读全文
posted @ 2017-05-04 11:49 kissed 阅读(108) 评论(0) 推荐(0) 编辑
摘要: $http 是 AngularJS 中的一个核心服务,用于读取远程服务器的数据。 使用格式: 简写方法 POST 与 GET 简写方法格式: 此外还有以下简写方法: $http.get $http.head $http.post $http.put $http.delete $http.jsonp 阅读全文
posted @ 2017-05-04 11:29 kissed 阅读(152) 评论(0) 推荐(0) 编辑