箭头函数 12345678910111213141516171819202122// function func(){}// 不带参数let func = () => { console.log("func");}// 第一个参数let func_1 = x1 => { console.log(x1);}// 带多个参数let func_2 = (x1, x2) => { console.log(x1, x2);}// 有返回值let func_5 = () => 999 + 1;// 等价于func_5let func_6 = () => { return 999 + 1;}