File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -318,7 +318,7 @@ console.log(b); // 2
318
318
319
319
### Destructuring Objects
320
320
321
- ** 结构对象 **
321
+ ** 解构对象 **
322
322
323
323
``` javascript
324
324
var luke = { occupation: ' jedi' , father: ' anakin' };
@@ -524,7 +524,7 @@ function initializeCanvas(options) {
524
524
}
525
525
```
526
526
527
- 我们可以利用上面提到的新特性 ** 结构 ** ,来完成与上面同样功能的函数:
527
+ 我们可以利用上面提到的新特性 ** 解构 ** ,来完成与上面同样功能的函数:
528
528
We can achieve the same functionality using destructuring as a formal parameter
529
529
to a function:
530
530
@@ -536,7 +536,7 @@ function initializeCanvas(
536
536
// Use variables height, width, lineStroke here
537
537
```
538
538
539
- 如果我们需要把这个参数变为可选的,那么只要把该参数结构为一个空对象就好了 :
539
+ 如果我们需要把这个参数变为可选的,那么只要把该参数解构为一个空对象就好了 :
540
540
541
541
``` javascript
542
542
function initializeCanvas (
You can’t perform that action at this time.
0 commit comments