1
我找遍歷數組的對象列表鬍子迭代對象
這裏是我的樣本對象
var Categories = {
"communication": [
{
"id": "communication_001",
"category": "communication",
"lastModified": "4 Day ago"
},
{
"id": "communication_002",
"category": "communication",
"lastModified": "1 Day ago"
}
],
"social": [
{
"id": "social_001",
"category": "social",
"lastModified": "2 Day ago"
}
],
"storage": [
{
"id": "storage_001",
"category": "storage",
"lastModified": "3 Day ago"
}
]
}
我在這裏跟鬍子compling
var htmlTemplate= Mustache.render(template, { connectors: Categories });
那麼要怎麼做成爲我的編譯模板?
建議我鬍子模板。