Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试获取 HTML 页面中每个元素的数组:
var elms = document.querySelectorAll("");
但没有成功。
想法?
谢谢
var elms = document.getElementsByTagName("*");