<!DOCTYPE html>
<html ng-app="App" ng-controller="Baby">
<head>
<meta charset="utf-8" />
<title></title>
<script src="css/angular.min.js"></script>
<script>
var App=angular.module("App",[]);
App.controller("Baby",function($scope,$http){
$http({
method:"GET",
url:"aa.json"
}).success(function(data){
$scope.name=data.data.pc_feed_focus;
});
});
</script>
</head>
<body>
<ul ng-repeat="x in name">
<li>{{x.title}}</li>
</ul>
<!--<table border="1px" cellspacing="0" ng-repeat="x in name">
<tr>
<td>{{x.title}}</td>
<td>{{x.title}}</td>
</tr>
</table>-->
</body>
</html>
<html ng-app="App" ng-controller="Baby">
<head>
<meta charset="utf-8" />
<title></title>
<script src="css/angular.min.js"></script>
<script>
var App=angular.module("App",[]);
App.controller("Baby",function($scope,$http){
$http({
method:"GET",
url:"aa.json"
}).success(function(data){
$scope.name=data.data.pc_feed_focus;
});
});
</script>
</head>
<body>
<ul ng-repeat="x in name">
<li>{{x.title}}</li>
</ul>
<!--<table border="1px" cellspacing="0" ng-repeat="x in name">
<tr>
<td>{{x.title}}</td>
<td>{{x.title}}</td>
</tr>
</table>-->
</body>
</html>