我试图迭代表中的数据:
<table>
<template iterate="entry in data">
<tr>
<template iterate="value in entry.values">
<td>{{ value }}</td>
</template>
</tr>
</template>
</table>
Run Code Online (Sandbox Code Playgroud)
出于某种原因,我在构建时收到此错误消息:
表上下文中的意外结束标记(模板)导致了巫毒模式.
当我在里面迭代时它工作正常ul:
<ul>
<template iterate="entry in data">
<template iterate="value in entry.values">
<li>{{ value }}</li>
</template>
</template>
</ul>
Run Code Online (Sandbox Code Playgroud)
我想,使用表和迭代应该不是问题.
看起来我找到了解决方案,虽然我仍然不知道问题是什么:
<table template iterate="entry in data">
<tr template iterate="value in entry.values">
<td>{{ value }}</td>
</tr>
</table>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1273 次 |
| 最近记录: |