如何在emberjs视图中获取数组的索引项.
这会返回一个错误:
{{#view}}
{{oneArray[0]}}
{{/view}}
Run Code Online (Sandbox Code Playgroud)
我不想使用{{#each}}来显示所有项目,只是想显示特殊索引项目.怎么样?
或者我可以获得{{#each}}的索引吗?
{{#each oneArray}}
{{#if index>0}}
don't show the first item {{oneArray[index]}}
{{/if}}
{{/each}}
Run Code Online (Sandbox Code Playgroud) ember.js ×1