【发布时间】:2015-05-24 00:29:59
【问题描述】:
当我在#each 循环中时,有没有办法访问父模板的助手?
<template name="template2">
{{test}}<br/>
{{#each list}}
{{this}}:{{../test}}<br/>
{{/each}}
</template>
第一个 {{test}} 有效,循环中的那个无效。如果这是答案,我也尝试过 {{../this.test}} 失败。
.. 语法在这里不起作用吗?我找到了this 的答案,这似乎表明确实如此,但正如您在此meteorpad 中看到的那样,它没有。
【问题讨论】:
标签: meteor