From 5a17945996ef9b9f2263362a960fa93b3a69f8ba Mon Sep 17 00:00:00 2001 From: btea <2356281422@qq.com> Date: Thu, 11 Nov 2021 19:31:02 -0600 Subject: Update Glossary/Truthy, zh-CN (#3050) --- files/zh-cn/glossary/truthy/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'files/zh-cn/glossary') diff --git a/files/zh-cn/glossary/truthy/index.html b/files/zh-cn/glossary/truthy/index.html index 1fc70469bc..06dae31b50 100644 --- a/files/zh-cn/glossary/truthy/index.html +++ b/files/zh-cn/glossary/truthy/index.html @@ -8,7 +8,7 @@ tags: - 术语 translation_of: Glossary/Truthy --- -

在 {{Glossary("JavaScript")}} 中,truthy(真值)指的是在{{Glossary("Boolean", "布尔值")}}上下文中,转换后的值为真的值。所有值都是真值,除非它们被定义为 {{Glossary("Falsy", "假值")}}(即除 false0""nullundefinedNaN 以外皆为真值)。

+

在 {{Glossary("JavaScript")}} 中,truthy(真值)指的是在{{Glossary("Boolean", "布尔值")}}上下文中,转换后的值为真的值。所有值都是真值,除非它们被定义为 {{Glossary("Falsy", "假值")}}(即除 false0-00n""nullundefinedNaN 以外皆为真值)。

{{Glossary("JavaScript")}} 在布尔值上下文中使用强制类型转换({{Glossary("Type_Conversion", "coercion")}})。

-- cgit v1.2.3-54-g00ecf