如何使用聚合物重複模板動態獲取此行數組對象的所有字段?聚合物模板重複字段名稱
rows = [{
"field1":"test1",
"field2":"test2",
"field3":"test3",
"field4":"test4"
}]
<template repeat="{{data in rows}}">
{{data.field1}}
{{data.field2}}
{{data.field3}}
{{data...}}
</template>
請參閱此相關的問題:http://stackoverflow.com/questions/22211597/polymer-iterating-over-object-in-template – Cristian