Create destructuring.md

This commit is contained in:
王宁
2017-06-13 16:11:34 +08:00
committed by GitHub
parent 3ff9b184e4
commit 607e9e4a74
+1 -1
View File
@@ -511,7 +511,7 @@ let {(x): c} = {};
let { o: ({ p: p }) } = { o: { p: 2 } };
```
上面个语句都会报错,因为它们都是变量声明语句,模式不能使用圆括号。
上面6个语句都会报错,因为它们都是变量声明语句,模式不能使用圆括号。
(2)函数参数中,模式不能带有圆括号。