摘要: The arguments object is an Array like object corresponding to the arguments passed to a function. The arguments object is not an Array . It is similar 阅读全文
posted @ 2018-08-04 10:09 GaaraHan 阅读(203) 评论(0) 推荐(0) 编辑
摘要: `本文主要是个人对call()方法的一点理解` 函数原型 myFunc.call(thisArg, arg1, arg2, ...) 参数理解 方法与传统的传参调用不同的是, 不只指定函数的参数(arg1,arg2...),还指定了函数在运行时的 指向(thisArg) 这是一个能帮助理解this指 阅读全文
posted @ 2018-08-04 09:57 GaaraHan 阅读(185) 评论(0) 推荐(0) 编辑
摘要: 在查看MDN文档中 Array.prototype.filter() 时,看到这样一段话: The range of elements processed by filter() is set before the first invocation of callback. Elements whi 阅读全文
posted @ 2018-08-04 09:54 GaaraHan 阅读(374) 评论(0) 推荐(0) 编辑
摘要: `2018 8 3 最近很常使用类数组对象,写一下自己的所得` 1. Arguments 个人接触的第一个类数组,就是 元素 以前写的 的简单介绍, "点这儿" 看看 在控制台的输出: JavaScript : 输出 : 2. HTML Collection 也是比较常见的一种特殊类数组对象,在使用 阅读全文
posted @ 2018-08-04 09:53 GaaraHan 阅读(4562) 评论(1) 推荐(1) 编辑