1
0
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:
王宁 2017-06-13 16:11:34 +08:00 committed by GitHub
parent 3ff9b184e4
commit 607e9e4a74

View File

@ -511,7 +511,7 @@ let {(x): c} = {};
let { o: ({ p: p }) } = { o: { p: 2 } };
```
上面个语句都会报错,因为它们都是变量声明语句,模式不能使用圆括号。
上面6个语句都会报错,因为它们都是变量声明语句,模式不能使用圆括号。
2函数参数中模式不能带有圆括号。