diff options
author | Panda <71349086+jianyun2020@users.noreply.github.com> | 2021-09-12 16:10:00 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-12 16:10:00 +0800 |
commit | 664a9872a7d947c0f4bbfe725d4ac634e044da19 (patch) | |
tree | 4a2ff26e36fa3a6286078ecffb63a83591c899d4 /files/zh-cn | |
parent | 832d2864113a121f0c864c915299679123f3e852 (diff) | |
download | translated-content-664a9872a7d947c0f4bbfe725d4ac634e044da19.tar.gz translated-content-664a9872a7d947c0f4bbfe725d4ac634e044da19.tar.bz2 translated-content-664a9872a7d947c0f4bbfe725d4ac634e044da19.zip |
Update content in Web/JavaScript/Data_structures, zh-CN (#2378)
Diffstat (limited to 'files/zh-cn')
-rw-r--r-- | files/zh-cn/web/javascript/data_structures/index.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/files/zh-cn/web/javascript/data_structures/index.html b/files/zh-cn/web/javascript/data_structures/index.html index 193a5cc08a..8e1d7d433a 100644 --- a/files/zh-cn/web/javascript/data_structures/index.html +++ b/files/zh-cn/web/javascript/data_structures/index.html @@ -26,7 +26,7 @@ foo = true; // foo is a Boolean now <p>最新的 ECMAScript 标准定义了 8 种数据类型:</p> <ul> - <li>6 种{{Glossary("Primitive", "原始类型")}},使用 {{Glossary("typeof")}} 运算符检查: + <li>7 种{{Glossary("Primitive", "原始类型")}},使用 {{Glossary("typeof")}} 运算符检查: <ul> <li>{{Glossary("undefined")}}:<code>typeof instance === "undefined"</code></li> <li>{{Glossary("Boolean")}}:<code>typeof instance === "boolean"</code></li> @@ -34,9 +34,9 @@ foo = true; // foo is a Boolean now <li>{{Glossary("String")}}:<code>typeof instance === "string</code></li> <li>{{Glossary("BigInt")}}:<code>typeof instance === "bigint"</code></li> <li>{{Glossary("Symbol")}} :<code>typeof instance === "symbol"</code></li> + <li>{{Glossary("null")}}:<code>typeof instance === "object"</code>。</li> </ul> </li> - <li>{{Glossary("null")}}:<code>typeof instance === "object"</code>。</li> <li>{{Glossary("Object")}}:<code>typeof instance === "object"</code>。任何 {{Glossary("constructed")}} 对象实例的特殊非数据结构类型,也用做数据结构:new {{Glossary("Object")}},new {{Glossary("Array")}},new {{Glossary("Map")}},new {{Glossary("Set")}},new {{Glossary("WeakMap")}},new {{Glossary("WeakSet")}},new {{Glossary("Date")}},和几乎所有通过 {{Glossary("new keyword")}} 创建的东西。</li> </ul> |