The Shadow of a Tree 大树的影子
As I said in my previous article, one huge advantage of shadow trees for the rendering of custom elements is that they leave a healthy and un-cluttered document tree.
我在以前的文章中曾经提到,影像树对于呈现定制元素的巨大好处是它保留了一个健康的、井井有条的文档树。
As I said earlier, this is where you place all the SVG that is copied into the shadow tree of each custom element instance.
如前所述,在这里可以放置需要复制到每个定制元素实例影像树中的任何SVG。
The contents of this element are automatically copied into the shadow tree of each instance of the element for which it is defined at binding time.
该元素的内容被自动复制到绑定时定义的每个元素实例的影像树中。
应用推荐