ES6—箭头函数let res = () => {} 与function的区别Posted on 2021-08-192021-08-19 1.箭头函数与function定义函数的写法: //function function fn(a, b){ return a + b; } //arrow function let foo = (a, b)=>{ return a + b }; 2.this的指向: 使...