首先我们使用attachShadow创建一个shadow dom. <body> <div>普通的dom节点</div> <div ... 通过shadow host的attachShadow方法来创建shadow dom.
確定! 回上一頁