我们有一些对象数组:
data = [
{
'showname-array': [
{'a':..}
{'b':..}
{'c':..}
]
},
{
'andanotherName-array': [
{'a':..}
{'b':..}
{'c':..}
]
},
]
是否可以用 mustache 或 underscore.js-templates 渲染对象属性的名称:'showname-array''andanotherName-array'
<div> Hello , showing content of: <% showname-array %> </div>
这怎么可能?