箭头函数this的指向

74 阅读1分钟

箭头函数this的指向: 向外层作用域中,一层层查找this,直到有this的定义

(简单说,箭头函数中的this引用的就是最近作用域中的this)