diff options
Diffstat (limited to 'files/zh-cn/web/javascript/reference/operators/destructuring_assignment/index.html')
-rw-r--r-- | files/zh-cn/web/javascript/reference/operators/destructuring_assignment/index.html | 2 |
1 files changed, 1 insertions, 1 deletions
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 }</pre> <pre class="brush: js">const foo = { 'fizz-buzz': true }; const { 'fizz-buzz': fizzBuzz } = foo; -console.log(fizzBuzz); // "true" +console.log(fizzBuzz); // true </pre> <h3 id="解构对象时会查找原型链(如果属性不在对象自身,将从原型链中查找)">解构对象时会查找原型链(如果属性不在对象自身,将从原型链中查找)</h3> |