gpt4 book ai didi

javascript - AngularJs ngRepeat系列?

转载 作者:行者123 更新时间:2023-11-30 08:36:06 25 4
gpt4 key购买 nike

我有一系列这样的对象:

[[null,"SUPPER",7],[1436306400000,"SUPPER",2],[1436220000000,"SUPPER",1],[null,"DINNER",2],[1436133600000,"BREAKFAST",1],[1436133600000,"SUPPER",2],[null,"BREAKFAST",1],[1436392800000,"DINNER",1]]

如何使用 ngRepaat 在表格行中写入每个对象?

最佳答案

这是一个工作的plunker http://plnkr.co/edit/Fgsrx8VzRfPG7y9seTwQ?p=preview

<table border=1>
<tr ng-repeat="tr in data">
<td ng-repeat="td in tr">{{ td || '&nbsp;'}}</td>
</tr>
</table>

关于javascript - AngularJs ngRepeat系列?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31339205/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com