为聚合物找到 1 篇文章

聚合物 1.0 dom-repeat 应显示以 HTML 开头的 1 的索引

Samual Sam
更新于 2020 年 1 月 28 日 09:20:46

118 次浏览

Polymer.js 是 Google 创建的 JavaScript 库,可重用 HTML 元素来使用组件构建应用程序。要获得该索引,你需要将索引设置为:{{displayIndex(index)}} displayIndex 将为:function (index) {    return index + 1; }我们来看一个示例:学科 {{displayIndex(index)}}

1
广告
© . All rights reserved.