JS 中如何区分空和false
typeof(undefined) == 'undefined' typeof(null) == 'object' typeof("") == 'string' typeof(0) == 'number' typeof(false) == 'boolean'记下..
发布时间: 2012-06-27 14:20:09 作者: rapoo
JS 中如何区分空和false
typeof(undefined) == 'undefined' typeof(null) == 'object' typeof("") == 'string' typeof(0) == 'number' typeof(false) == 'boolean'