在 Firefox 的 DevTools console 可以用 $$$('selector') 拉出包括在 shadow root 的元素
#console #css #devtools #dollar #firefox #javascript #js #root #selector #shadow #sign
在 Mastodon 上看到 https://mastodon.social/@firefoxwebdevs/115847499973384654 這篇: 在 Mozilla 的官方的文件裡面有提到這些東西:「Web Console Helpers」,包括常用的 $ (類似 querySelector) 與 $$ (類似 querySelectorAll)。 $$$ 可以連同 shadow root 下的元素也一起找,就不用先找到 shadow root 元素再 querySelectorAll 了。...
pick of the day...
pick of the day...
pick of the day...
pick of the day...
pick of the day...
pick of the day...