function Person(name){
<span style="white-space:pre"> </span>this.name=name;
}
function Student(name){
<span style="white-space:pre"> </span>this.person=Person;//冒充对象的方式继承
<span style="white-space:pre"> </span>this.person(name);
}
function Person(name){
<span style="white-space:pre"> </span>this.name=name;
}
function Student(name){
<span style="white-space:pre"> </span>this.person=Person;//冒充对象的方式继承
<span style="white-space:pre"> </span>this.person(name);
}