摘要: ``` 1. 箭头函数没有自己的this,它里面的this是继承所属上下文中的this,而且使用call与apply都无法改变 let obj = { name: 'obj' } function fn1() { console.log(this); } fn1.call(obj); let fn2() => { console.log(this); } fn2.call(obj); 2. 普通函 阅读全文
posted @ 2019-11-19 22:27 甜珊贝奇 阅读(1678) 评论(0) 推荐(0) 编辑