我想要达到两个级别的变量:
(0, 2, 4, 6, 8)
(0, 2, 4, 6, 9)
(0, 2, 4, 7, 8)
(0, 2, 4, 7, 9)
(0, 2, 5, 6, 8)
(0, 2, 5, 6, 9)
(0, 2, 5, 7, 8)
(0, 2, 5, 7, 9)
(0, 3, 4, 6, 8)
(0, 3, 4, 6, 9)
(0, 3, 4, 7, 8)
(0, 3, 4, 7, 9)
(0, 3, 5, 6, 8)
(0, 3, 5, 6, 9)
(0, 3, 5, 7, 8)
(0, 3, 5, 7, 9)
(1, 2, 4, 6, 8)
(1, 2, 4, 6, 9)
(1, 2, 4, 7, 8)
(1, 2, 4, 7, 9)
(1, 2, 5, 6, 8)
(1, 2, 5, 6, 9)
(1, 2, 5, 7, 8)
(1, 2, 5, 7, 9)
(1, 3, 4, 6, 8)
(1, 3, 4, 6, 9)
(1, 3, 4, 7, 8)
(1, 3, 4, 7, 9)
(1, 3, 5, 6, 8)
(1, 3, 5, 6, 9)
(1, 3, 5, 7, 8)
(1, 3, 5, 7, 9)
我该怎么做?可能我有一些名称冲突,因为变量的名称是" locale"这也是一个语言管理变量。
答案 0 :(得分:0)
我设法使用以下语法获取变量:
{{myvariable}}
{{#each grandparent}}
{{#each parent}}
{{#customhelper}}
//i want to reach the variable here
//{{log ../myvariable}} does not work (returns undefined)
//{{log .../myvariable}} does not work (returns undefined)
//{{log ..../myvariable}} does not work (returns undefined)
{{/customhelper}}
{{/each}}
{{/each}}
我不知道这是否正确。如果有人有更多我想要的信息。