this词法

# this词法

ES6 添加了一个特殊的语法形式用于函数声明,叫作箭头函数

var foo = a => { console.log( a ); };
foo( 2 ); // 2
1
2
上次更新: 2022/7/25 下午12:50:39