function与箭头函数的区别?

function是随定义的环境改变的。

箭头函数是定义的环境是一直不变的。

猜你喜欢

转载自www.cnblogs.com/duanzhange/p/9314615.html