Listing 1 instantiates a default tree viewer; you can also customize the tree and instantiate the tree viewer by using a constructor with a tree object as the parameter.
2
如前所述,在这里可以放置需要复制到每个定制元素实例影像树中的任何SVG。
As I said earlier, this is where you place all the SVG that is copied into the shadow tree of each custom element instance.
3
我在以前的文章中曾经提到,影像树对于呈现定制元素的巨大好处是它保留了一个健康的、井井有条的文档树。
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.