Document:all 属性
Deprecated
Document 接口的 all 只读属性会返回以文档节点为根的 HTMLAllCollection 集合。
与其使用 document.all 来按文档顺序返回包含所有文档元素的 HTMLAllCollection,不如使用 Document.querySelectorAll 按文档顺序返回包含所有文档元素的 NodeList:
js
const allElements = document.querySelectorAll("*");