在聚合物1.0我重複<option>
標籤<select>
標籤內是這樣的:如何重複聚合物2.x中的<option>標籤?
<select>
<template is="dom-repeat" items="{{items}}">
<option value$="[[item]]">[[item]]</option>
</template>
</select>
但在聚合物2.X它建議使用<dom-repeat>
標籤:
<select>
<dom-repeat items="{{items}}">
<template>
<option value$="[[item]]">[[item]]</option>
</template>
</dom-repeat>
</select>
但這不起作用。那麼如何在Polymer 2中重複<option>
標籤?
由於DOM重複元素沒有完全完成,有很多報告的錯誤是propably更好地與合作是=「DOM重複」。你可以在github上公佈這個問題,但我不確定,如果它是bug。必須有一些解決方法 –