我想问问大神怎么能让下面两个数组合并到一起,使得 <td ng-bind="quest.answer"></td>能够实现
cid和id是相等的
questions = [{id:1,q_number:1},{id:2,q_number:2},{id:3,q_number:3},{id:4,q_number:4}]
array = [{cid:1,answer:1},{cid:2,answer:2},{cid:3,answer:3},{cid:4,answer:4}]
<tr ng-repeat="quest in questions>
<td ng-bind="quest.q_number"></td>
<td ng-bind="quest.answer"></td>
</tr>
天涯帅哥
相关分类