From 2ef4244da710da85d3cf29472957acc504302a4c Mon Sep 17 00:00:00 2001 From: exprassL <49985254+exprassL@users.noreply.github.com> Date: Tue, 21 Dec 2021 21:46:11 +0800 Subject: ”无效的 JavaScript 标识符作为属性名称“一节输出值有误 (#3290) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 输出值应是 boolean true,不是字符串 "true" --- .../javascript/reference/operators/destructuring_assignment/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'files/zh-cn/web/javascript') diff --git a/files/zh-cn/web/javascript/reference/operators/destructuring_assignment/index.html b/files/zh-cn/web/javascript/reference/operators/destructuring_assignment/index.html index 4c6c4a4457..8d56764ac3 100644 --- a/files/zh-cn/web/javascript/reference/operators/destructuring_assignment/index.html +++ b/files/zh-cn/web/javascript/reference/operators/destructuring_assignment/index.html @@ -370,7 +370,7 @@ rest; // { c: 30, d: 40 }
const foo = { 'fizz-buzz': true }; const { 'fizz-buzz': fizzBuzz } = foo; -console.log(fizzBuzz); // "true" +console.log(fizzBuzz); // true