我从后台拿到二维数组,想问问怎么通过循环拿到里面的answered
数组大约是这样的
js:
questions=[
{id:1, number:1, answer{user_id:1, answered:3}},
{id:2, number:2, answer{user_id:1, answered:4}},
{id:3, number:3, answer{user_id:1, answered:5}},
]
html
<tr ng-repeat="quest in questions">
<td ng-bind="quest.answered"></td>
<td></td>
</tr>
wwpbjing
nickylau82
幽凝
相关分类