前言 箭头函数是es6新特性,和普通函数没有太大区别,说白了就是匿名函数的简写 举例 普通函数 let fn1 = function(name){ console.log('我的名字是'+name); } 箭头函数 let fn1