//构造函数
function Box(name,age){
this.name=name;
this.age=age;
this.run=function(){
return this.name+'--'+this.age;
}
}
var box1= Box('gao',23);//我是一个对象
var box2=new Object();
Box.call(box2,'chen','24'); 对象冒充
console.log(box2 instanceof Object);//冒充后我依然从属于Object对象
console.log(box2 instanceof Box);//冒充后我并不从属于与Box