0
我試圖做這樣的:如何從handlebars.js中的「每個」塊中訪問集合?
{{# each items }}
{{ @index }}/{{ items.length }}
{{/ each }}
但似乎我無法訪問items
的each
塊內。
有沒有解決方法?
我試圖做這樣的:如何從handlebars.js中的「每個」塊中訪問集合?
{{# each items }}
{{ @index }}/{{ items.length }}
{{/ each }}
但似乎我無法訪問items
的each
塊內。
有沒有解決方法?
使用結構:
{{# each items }}
{{ @index }}/{{ ../items.length }}
{{/ each }}