2019年4月25日

js 中逻辑为 false 的8种情况

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

posted @ 2019-04-25 11:15 cag2050 阅读(214) 评论(0) 推荐(0) 编辑

导航