mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-27 20:32:21 +00:00
Create destructuring.md
This commit is contained in:
parent
3ff9b184e4
commit
607e9e4a74
@ -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