typeof typeof null = “object” typeof 是基于数据存储的二进制值进行判断。对象类型的二进制前三位都是 0,而 null 存储时二进制是全 0,所以 typeof 就给他判断为 object 了。同理任何类型的对象,例如日期、正则、数组等他都判断为 object。 typeof undefined // undefined typeof 'abc' // string typeof 123 // number typeof true // boolean typeof { } // object typeof [] // object typeof null