mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-29 05:42:20 +00:00
Update style.md
This commit is contained in:
parent
421b8ab321
commit
94f0d4921f
@ -266,11 +266,6 @@ const nodes = Array.from(foo);
|
||||
|
||||
// best
|
||||
[1, 2, 3].map(x => x * x);
|
||||
|
||||
// best
|
||||
[1, 2, 3].map((x,i) => {
|
||||
return x * i;
|
||||
});
|
||||
```
|
||||
|
||||
箭头函数取代`Function.prototype.bind`,不应再用self/\_this/that绑定 this。
|
||||
|
Loading…
x
Reference in New Issue
Block a user