伪数组:
类似于数组的集合,一个是arguments,一个是DOM的children属性,获取到的子节点集合:具有索引和length属性,可以通过for循环写循环语句去遍历。
document.getElementsByTagName('div')[0].children
HTMLCollection [style]
0: style
length: 1
__proto__: HTMLCollection
主要是_proto_区别
function test(a,b){console.log(arguments);};test(1,2);
Arguments(2) [1, 2, callee: ƒ, Symbol(Symbol.iterator): ƒ]
0: 1
1: 2
callee: ƒ test(a,b)
length: 2
Symbol(Symbol.iterator): ƒ values()
__proto__: Object