Templates 访问其他对象元素时的索引把手

Templates 访问其他对象元素时的索引把手,templates,template-engine,handlebars.js,Templates,Template Engine,Handlebars.js,我试图访问另一个数组字段,其索引与我迭代的数组相同 {{#each array}} {{ otherArray.{{@index}}.myField }} {{/each}} 是否可以执行以下操作?查找帮助程序执行了此操作: {{#each array}} {{#with (lookup ../otherArray @index)}} {{myField}} {{/with}} {{/each}}

我试图访问另一个数组字段,其索引与我迭代的数组相同

{{#each array}}
    {{ otherArray.{{@index}}.myField }}
{{/each}}

是否可以执行以下操作?

查找帮助程序执行了此操作:

{{#each array}}
    {{#with (lookup ../otherArray @index)}}
        {{myField}}
    {{/with}}
{{/each}}