ES6--箭头函数 1、如果只有一个参数,()可以省 2、如果只有一个return,{}和return可以省 1 let show = function (a) { 2 return a * 2 3 } 变形为箭头函数 let show = a => a * 2