【发布时间】:2011-08-26 16:19:27
【问题描述】:
所以我有这个调用函数的 JQuery 模板:
<script id="Fred" type="text/x-jQuery-tmpl">
<td>${functionX()}${Field2}</td>
</script>
效果很好。但是现在我想向其中传递一个参数,但是以下行不通。
<script id="Fred" type="text/x-jQuery-tmpl">
<td>${functionX(${Field1})}${Field2}</td>
</script>
有什么建议吗?
【问题讨论】:
标签: jquery-templates