2016年12月8日

js中逻辑为false的8种情况

摘要: 如果对象无初始值或者其值为 数字0、-0、null、""、false、undefined 或者 NaN,那么对象的逻辑值为 false。 > 注意:字符串 '0',值为 true typeof 返回的是字符串,有六种可能:"number"、"string"、"boolean"、"object"、"f 阅读全文

posted @ 2016-12-08 11:28 cag2050 阅读(307) 评论(0) 推荐(0) 编辑

导航