typeof 可以判断简单数据类型, 数字返回number 字符串返回string undefined返回undefined null 返回object 布尔值返回Boolean, 函数返回function 数组和对象都会返回object, 因此typeof只可以作为区分简单数据类型的方法 2.instanceof 可以用来区分对象和数组