迭代数组的myarray=[1, 2, 3]工作原理如下:
myarray=[1, 2, 3]
<template is="dom-repeat" items="[[myarray]]"> <span>[[item]]</span> </template>
如何迭代对象myobject = {a:1, b:2, c:3}?
myobject = {a:1, b:2, c:3}
templates polymer polymer-1.0
polymer ×1
polymer-1.0 ×1
templates ×1