From 42155a6293f02cd2d6084ae8895c6b9a7a0de2bb Mon Sep 17 00:00:00 2001 From: Jet <390715001@qq.com> Date: Tue, 8 Aug 2017 17:22:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E4=B8=AA=E6=A0=87=E7=82=B9=E7=AC=A6?= =?UTF-8?q?=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 519行,数组里面的元素间用逗号而不是冒号 --- docs/destructuring.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/destructuring.md b/docs/destructuring.md index 0b92f57..0e314ff 100644 --- a/docs/destructuring.md +++ b/docs/destructuring.md @@ -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)赋值语句的模式