相关疑难解决方法(0)

如何在Polymer 1.0中使用dom-repeat与对象而不是数组?

迭代数组的myarray=[1, 2, 3]工作原理如下:

<template is="dom-repeat" items="[[myarray]]">
    <span>[[item]]</span>
</template>
Run Code Online (Sandbox Code Playgroud)

如何迭代对象myobject = {a:1, b:2, c:3}

templates polymer polymer-1.0

27
推荐指数
2
解决办法
2万
查看次数

标签 统计

polymer ×1

polymer-1.0 ×1

templates ×1