mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-24 10:22:23 +00:00
改个标点符号
519行,数组里面的元素间用逗号而不是冒号
This commit is contained in:
parent
f78b5c92c1
commit
42155a6293
@ -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)赋值语句的模式
|
||||
|
Loading…
x
Reference in New Issue
Block a user