createShadowRoot (); shadow.appendChild(clone); } Here, instead of appending the template code directly to the custom element, we created a shadow root using ...
確定! 回上一頁