instanceOf:对象是否是一个类的实例。返回一个布尔值。
typeOf:检测给定变量的数据类型。可能的返回值:undefined,Boolean,string,function,object,number;