更新时间:2022-02-28 22:41:16
您可以使用属性childNodes
代替all
.
在这里查看更多信息:
http://www.w3schools.com/Dom/dom_element.asp [
You could use the propertychildNodes
instead of usingall
.
Have a look here fr more info:
http://www.w3schools.com/Dom/dom_element.asp[^]
Good luck!
document.getElementById(''elementId'')
适用于所有浏览器.