慕工程0101907
用angularjs读取本地json的方法如下:1、本地json文件的内容如下:[{ "text":"learn angular", "done":true },{ "text":"build an angular app", "done":false},{ "text":"something", "done":false },{ "text":"another todo", "done":true }]2、利用angularjs读取的方法:var App = angular.module('App', []);App.controller('TodoCtrl', function($scope, $http) {$http.get('todos.json').then(function(res){$scope.todos = res.data;});});