
继承关系
代码:
function Temp(){};
Temp.prototype=Person.prototype;
var stuProto=new Temp;
Student.prototype=stuProto;
stuProto.constructor=Student;
function Temp(){};
Temp.prototype=Person.prototype;
var stuProto=new Temp;
Student.prototype=stuProto;
stuProto.constructor=Student;