typeof对不同的对象返回不同的字符串类型,总结如下: "undefined" -> 未定义。 "boolean" -> 布尔值。 "string" -> 字符串。 "number" -> 数值类型。 "object" _> 对象或者null。 "function" -> 函数。