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