摘要: 迭代(遍历)方法: forEach()、map()、 filter()、 some()、 every() ; map()和forEach()相似,some()和every()相似 1.数组方法forEach遍历数组 array. forEach ( function (currentValue, i 阅读全文
posted @ 2020-10-13 23:36 星辰ꦿ.大海 阅读(109) 评论(0) 推荐(0) 编辑
摘要: 1.call() ES6之前并没有给我们提供extends继承。我们可以通过构造函数+原型对象模拟实现继承,被称为组合继承 调用这个函数并且修改函数运行时的this指向 fun. call (thisArg, arg1, arg2, ...) thisArg : 当前调用函数this的指向对象 ar 阅读全文
posted @ 2020-10-13 22:25 星辰ꦿ.大海 阅读(84) 评论(0) 推荐(0) 编辑