📜  创建影子根 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:18.592000             🧑  作者: Mango

代码示例1
hostElement.attachShadow({mode:"open"})
//open mode to alow js to acces the shadow dom
hostElement.attachShadow()
//shadow dom can not be accesed with js