summaryrefslogtreecommitdiffhomepage
path: root/zh-cn
diff options
context:
space:
mode:
authorven <vendethiel@hotmail.fr>2015-10-05 23:17:39 +0200
committerven <vendethiel@hotmail.fr>2015-10-05 23:17:39 +0200
commite0f81c1a9f6329d785ecc558f1a380c24c26809d (patch)
tree39ae98c1c71461138437c9cdb7ba5078a16e4658 /zh-cn
parentd1a822f96c88855b2cbb649a4ea7b452e4104164 (diff)
parente848adf9d53e8af5863497438753d704d30f7c5c (diff)
Merge pull request #1360 from GersonLazaro/javascript-correction
Fix for issue #1248 [fa-ir, zh-cn, ko-kr, es-es, ru-ru, fr-fr, de-de]
Diffstat (limited to 'zh-cn')
-rw-r--r--zh-cn/javascript-cn.html.markdown3
1 files changed, 0 insertions, 3 deletions
diff --git a/zh-cn/javascript-cn.html.markdown b/zh-cn/javascript-cn.html.markdown
index dfeb2012..bdef0099 100644
--- a/zh-cn/javascript-cn.html.markdown
+++ b/zh-cn/javascript-cn.html.markdown
@@ -447,9 +447,6 @@ myNumber === myNumberObj; // = false
if (0){
// 这段代码不会执行,因为0代表假
}
-if (Number(0)){
- // 这段代码*会*执行,因为Number(0)代表真
-}
// 不过,包装类型和内置类型共享一个原型,
// 所以你实际可以给内置类型也增加一些功能,例如对string: