1
0
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:
Ruan YiFeng 2017-06-13 04:23:53 -05:00 committed by GitHub
commit a847619dfd

View File

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