Dom集合
# HTMLCollection 对象
其实就是getElementsByTagName() 方法返回 HTMLCollection (opens new window) 对象。
# 属性
因为类数组,所以他可以使用,数组的方法,如length,valueOf(), pop(), push(), 或 join() 。
编辑 (opens new window)
上次更新: 2021/08/13, 23:21:49
Luke's home 其实就是getElementsByTagName() 方法返回 HTMLCollection (opens new window) 对象。
因为类数组,所以他可以使用,数组的方法,如length,valueOf(), pop(), push(), 或 join() 。