問題1: 以下代碼適用於聚合物。我不太明白如何。我不必做類似var el = new Element()的事情,或者我沒有明確地將它附加到文檔中。 問題2:如何消除<my-element></my-element>標記? MyElement.html // After Importing all the necesarry files
var Element= Polymer({
is
HTML spec描述了存儲在CustomElementRegistry中的幾種元素。 內藏元件等<a>由的HTMLElement的像HTMLAnchorElement一個內置子類表示。 像<my-element>這樣的自治自定義元素,它們擴展了HTMLElement並註冊了CustomElementRegistry。 Customized builtin elements like <a is=