attachShadow ({mode:"open"}) // 將預計import的內容寫入Shadow DOM my_shadow.innerHTML = my_import.innerHTML. 加入上面script以後,可以發現受到template裡的CSS ...
確定! 回上一頁