目前,这只是一个学习Web组件的场所。 // A template tag itself is not even considered to be in the document, until it's activated. const template = document . createElement ( "template" ) ; template . innerHTML = ` <style> ${ /* matches the shadow host of the shadow dom */ } :host {} ${ /* matche