1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-24 10:22:23 +00:00

改个标点符号

519行,数组里面的元素间用逗号而不是冒号
This commit is contained in:
Jet 2017-08-08 17:22:03 +08:00 committed by GitHub
parent f78b5c92c1
commit 42155a6293

View File

@ -516,7 +516,7 @@ let { o: ({ p: p }) } = { o: { p: 2 } };
// 报错
function f([(z)]) { return z; }
// 报错
function f([z: (x)]) { return x; }
function f([z,(x)]) { return x; }
```
3赋值语句的模式