mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-29 05:42:20 +00:00
Merge branch 'gh-pages' of github.com:ruanyf/es6tutorial into gh-pages
This commit is contained in:
commit
99261d7e19
@ -263,6 +263,9 @@ const nodes = Array.from(foo);
|
||||
[1, 2, 3].map((x) => {
|
||||
return x * x;
|
||||
});
|
||||
|
||||
// best
|
||||
[1, 2, 3].map(x => x * x);
|
||||
```
|
||||
|
||||
箭头函数取代`Function.prototype.bind`,不应再用self/\_this/that绑定 this。
|
||||
|
Loading…
x
Reference in New Issue
Block a user