<li ng-repeat="a in b"><a>{{a.id}}</a> //这里是循环数组出id<ul> <li ng-repeat="">{{}}</li> //这里该怎么循环出arr的name?</ul></li>数据结构[{"id":1, "ps":1, "arr":[{"name":2,"user":13},{"name":3,"user":24}]},{"id":2, "ps":2, "arr":[{"name":4,"user":34},{"name":5,"user":45}]}]
1 回答
DIEA
TA贡献1820条经验 获得超2个赞
<li ng-repeat="a in b">
<a>{{a.id}}</a>
<ul>
<li ng-repeat="c in a.arr">{{c.name}}</li>
</ul>
</li>
添加回答
举报
0/150
提交
取消