Added a note. (#26167)

* Added a note.

Added a note.

* Update to Simplified Chinese
This commit is contained in:
Victor Lin
2019-04-08 16:13:03 -07:00
committed by Jingyi Ding
parent 8704a75844
commit c4b1621825

View File

@@ -25,7 +25,8 @@ Arrow函数是用于编写JavaScript函数表达式的新ES6语法。较短的
var multiply = (x, y) => x * y;
```
您不再需要`function``return`关键字,甚至是括号。
您不再需要`function``return`关键字,甚至是括号。
注意:只有在整个功能在同一行的時候才能省略花括号和`return`关键字。不然会报错。
### 简化了`this`
@@ -63,4 +64,4 @@ Arrow函数是用于编写JavaScript函数表达式的新ES6语法。较短的
#### 进一步阅读
[MDN链接](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions)
[MDN链接](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions)