【发布时间】:2020-01-29 11:35:01
【问题描述】:
我有下表,其中的超链接当前不起作用:
<div class="table">
<table id="personTable">
<tbody>
<tr>
<th>Id</th>
<th>Name</th>
</tr>
{{#each person}}
<tr>
<td><a href="https://www.mywebsite/person/{{id}}">{{id}}</a></td>
<td>{{name}}</td>
</tr>
{{/each}}
</tbody>
</table>
</div>
如何将占位符添加到超链接的末尾以便动态添加?
【问题讨论】:
-
你能进一步解释你想要达到的目标吗?你的锚标签
<a>没有正确生成? -
是链接本身不起作用,还是没有生成锚文本(即
{{id}})?
标签: html json handlebars.js sendgrid