mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-25 19:22:21 +00:00
Merge pull request #427 from johnjackson/patch-3
Create destructuring.md
This commit is contained in:
commit
a847619dfd
@ -511,7 +511,7 @@ let {(x): c} = {};
|
||||
let { o: ({ p: p }) } = { o: { p: 2 } };
|
||||
```
|
||||
|
||||
上面三个语句都会报错,因为它们都是变量声明语句,模式不能使用圆括号。
|
||||
上面6个语句都会报错,因为它们都是变量声明语句,模式不能使用圆括号。
|
||||
|
||||
(2)函数参数中,模式不能带有圆括号。
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user