Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在社交应用程序中以 JSON 的形式获取数据。我正在使用 OpenSocial v0.9 模板在带有标签的应用程序中呈现数据,但问题是我想以表格形式呈现数据,但它会连续重复项目,所以有什么办法!
问候, 阿布舍克
你看过<os:Repeat>标签了吗?也许你可以做这样的事情:
<script type="text/os-template" require="mytable"> <table> <os:Repeat expression="${mytable.rows}"> <tr> <td>${Cur.cell1}</td> <td>${Cur.cell2}</td> </tr> </os:Repeat> </table> </script>