Skip to content

Commit 61d8735

Browse files
authored
Update style.md
1 parent c63caa3 commit 61d8735

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/style.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ const nodes = Array.from(foo);
250250
})();
251251
```
252252

253-
那些需要使用函数表达式的场合,尽量用箭头函数代替。因为这样更简洁,而且绑定了 this。
253+
那些需要使用内联函数(或匿名函数)的场合,尽量用箭头函数代替。因为这样更简洁,而且绑定了 this。
254254

255255
```javascript
256256
// bad

0 commit comments

Comments
 (0)