摘要: 前言 首先需要知道的是,js中有6个值为false,分别是: 0, '', null, undefined, NaN 和 false, 其他(包括{}, [], Infinity)为true。可以使用Boolean()函数或是两次取非就能获得对象的布尔值,例如Boolean(undefined)和! 阅读全文
posted @ 2019-08-07 10:30 智者见智 阅读(5023) 评论(0) 推荐(0) 编辑