箭头函数和普通函数的区别

39 阅读1分钟
  1. 箭头函数没有自己的this,this和外面一样的
  2. 箭头函数由于没有自己的this,所以不能用于构造函数
  3. 箭头函数中没有arguments(了解一下)