首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > JavaScript >

JS 中怎么区分空和false

2012-06-27 
JS 中如何区分空和falsetypeof(undefined) undefined typeof(null) object typeof() stri

JS 中如何区分空和false

 typeof(undefined) == 'undefined' typeof(null) == 'object' typeof("") == 'string' typeof(0) == 'number' typeof(false) == 'boolean'


记下..

热点排行