instanceof操作符可用于是否由某个指定的构造器函数创建的
function Hero(){};
var t= new Hero();
var obj= {};
t instanceof Hero;
t instanceof Object;
obj instanceof Object;
function Hero(){};
var t= new Hero();
var obj= {};
t instanceof Hero;
t instanceof Object;
obj instanceof Object;