為聚合物找到 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.