getRootNode () is the best way to do that in shadow dom it'll return the shadow root otherwise it'll return the document.
確定! 回上一頁