我想知道多次使用document.getElementById()或使用document.getElementsByTagName()并查找特定元素ID的结果是否更有效?
javascript performance dom
dom ×1
javascript ×1
performance ×1