例如
function Person(name){
this.name = name;
}
Person.prototype.shown = function(){ alter(this.name) };
function Student(name){
this.name = name;
}
Student.prototype = new Person();
Student.prototype = Person.prototype;
我想知道为什么没看见有人写下面的继承方式,是有什么弊端吗 ?本人小白