Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用 amp-mustache 时,如何获取给定迭代的当前元素的索引?
我希望它看起来像这样:
{{#thing}} <p> Thing #{{index}} </p> \{{/thing}}
但这似乎不起作用...
这甚至可能吗?
据我所知,我们不能。但是您可以将索引添加到 JSON 响应中