原文见:https://blog.csdn.net/github_38851471/article/details/79446722
1.箭头函数与function定义函数的写法:
//function function fn(a, b){ return a + b; } //arrow function var foo = (a, b)=>{ return a + b };
原文见:https://blog.csdn.net/github_38851471/article/details/79446722
//function function fn(a, b){ return a + b; } //arrow function var foo = (a, b)=>{ return a + b };
claves
知之为不知