【发布时间】:2014-09-12 05:34:06
【问题描述】:
今天我有一个新问题。我正在尝试获取此 json 的多个数组。
[ { "_id" : "541200a79fb6706de9164063" , "index" : 0 , "guid" : “403d5692-0f07-40e6-84f5-32cdee137127”,“isActive”:真,“学校” : "BOILICON" , "地址" : "532 Everit Street, Williamson, Kentucky, 197”,“注册”:“2014 年 3 月 24 日,星期一 4:46 AM”,“教授”: [ { "id" : 0 , "name" : { "first" : "Mclean" , "last" : "Robertson"} , “电子邮件”:“mclean.robertson@undefined.com”,“年龄”:36,“电话”: "+1 (946) 436-2567" , "coursePrice" : "$4,882.28" , "favoriteParadigm" : “功能”} ]}
好吧,我尝试在 html 代码上这样做:
$<div ng-controller="studentsController">
<table>
<tr ng-repeat= "student in data.students">
<td>{{student.index}}</td>
<td>{{student.guid}}</td>
<td>{{student.isActive}}</td>
<td>{{student.school}}</td>
<td>{{student.address}}</td>
<td ng-repeat="prof in data.students.professor">
email: {{prof.email}}
</td>
</tr>
</table>
</div>$
但这对我不起作用。谁能帮帮我?
【问题讨论】:
标签: javascript json html angularjs