js判断null
(1)typeof用法typeof的运算数未定义,返回的就是 "undefined".运算数为数字 typeof(x) = "number"字符串 typeof(x) = "string"布尔值 typeof(x) = "boolean"对象,数组和null typeof(x) = "object"函数 typeof(