0%
箭头函数
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
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;
let func_6 = () => { return 999 + 1; }
|