【发布时间】:2015-03-15 05:21:28
【问题描述】:
我正在尝试在我的应用程序中加载 Google 电子表格,但我无法使其正常工作。我尝试了不同的访问树结构的方法(通过控制器和/或通过 html),但它们都不起作用。 知道可能出了什么问题吗?
这是我的控制器:
app.controller('SuperCtrl', ['$scope', '$http', function($scope,$http) {
$http.get("https://spreadsheets.google.com/feeds/list/1lZWwacSVxTD_ciOsuNsrzeMTNAl0Dj8SOrbaMqPKM7U/od6/public/values?alt=json-in-script&callback=x")
.success(function(response) {
$scope.items = response;
});
}]);
这是 HTML:
<ul ng-controller="SuperCtrl">
<li ng-repeat="item in items.feed.entry">
{{ item.title.type }}
</li>
</ul>
【问题讨论】:
-
先旋转你的头像
标签: javascript json angularjs google-sheets