By Noxxxx from https://interview.noxxxx.com/?post_type=post&p=47 上山打老虎
欢迎分享与聚合,尊重版权,可以联系授权
- 不能显示地命名
- 没有 arguments
- 不能用作构造函数,也没有 prototype 属性,不能使用 new 关键字
- 无法通过 call apply bind 改变 this, this 固定
哪些情况下不能使用箭头函数
- 对象里的函数调用对象内部的值不适用箭头函数
- 箭头函数不能当构造函数
- 动态上下文中的回调函数
- vue 的生命周期和 method 函数