2015年10月25日
摘要: 首先需要知道的是,js中有6个值为false,分别是: 0, '', null, undefined, NaN 和 false, 其他(包括{}, [], Infinity)为true.可以使用Boolean()函数或是两次取非就能获得对象的布尔值,例如Boolean(undefined)和!!un... 阅读全文
posted @ 2015-10-25 14:51 SUperman-苏智敏 阅读(15073) 评论(2) 推荐(0) 编辑