1、语法
var go=function(){
console.log("hello world");
}
go();
var show = () =>{
console.log("world");
}
show();
//如果箭头函数中只有一段语句可以简写
var test = () =>console.log("test");
test();
2、箭头函数的参数
var go =x=>console.log(x);
go(10);
var sum =(y,z)=>console.log(y+z);
sum(3,4);