如何使用纯JavaScript选择网页上的每个元素

I tried using document.getElementByTag(“*”); but it doesn’t work for every webpage.