typeof 判断基本数据类型,返回字符串instanceof 判断引用数据类型,返回布尔值constructor 无法检测null,undefinedObject.prototype.toString.call() 可以检测任意类型的数据