1、箭头函数更加简洁。
2、箭头函数没有自己的this,只会在自己作用域的上一层继承this
3、箭头函数继承来的this 指向永远不会变,使用call() | apply() | bind() 等方法不能改变
4、箭头函数不能作为构造函数使用,没有自己的arguments | prototype
1、箭头函数更加简洁。
2、箭头函数没有自己的this,只会在自己作用域的上一层继承this
3、箭头函数继承来的this 指向永远不会变,使用call() | apply() | bind() 等方法不能改变
4、箭头函数不能作为构造函数使用,没有自己的arguments | prototype