可能重複:
Mustache JS Template with JSON CollectionMustache.js:遍歷通過JSON收到清單
我有這樣的,我想用Mustache.js使用的JSON響應:
[
{"id": "1", "details": {"name": "X", "type":"Y" }},
{"id": "2", "details": {"name": "aName", "type":"something" }}
]
我如何遍歷這個使用mustache.js?
我不明白它是如何重複的。鏈接問題的標題不是描述性的,也沒有可接受的答案。 – Stealth 2012-08-11 13:28:12
有趣的是,後這是引用這個問題:「一個重複的」。 – Carcigenicate 2015-12-23 17:14:04