js的数据类型 1.undefined – 值未定义 2.booleam – 布尔值 3.string --字符串 4.number --数值 5.object --值是对象或者null 6.function --值是函数 typeof 可以判断数据类型 例如: typeof “string” = string typeof 10 = number typeof true = boolean typeof object = object typeof null = object