摘要: 定义可以通过索引访问元素,并且拥有 length 属性;没有数组的其他方法,例如 push , forEach , indexOf 等。类数组对象var foo = { 0: 'Java', 1: 'Python', 2: 'Scala', length: 3}如果类数组对象想实现数组的方法,可以通过Array.prototype.method.call的方法来实现Arra... 阅读全文
posted @ 2019-02-10 17:57 wynnzen 阅读(128) 评论(0) 推荐(0) 编辑