1. function Person(name,age){ 
  2.     this.name=name; 
  3.     this.age=age; 
  4. Person.prototype.getName=function(){ 
  5.     return this.name; 
  6. Person.prototype.getAge=function(){ 
  7.     return this.age; 
  8. function Person_Lxl(name,age,school){ 
  9.     Person.apply(this,arguments); 
  10.     this.school=school; 
  11.     this.info=function(){ 
  12.         alert(this.getName()+" , "+this.getAge()+" , "+this.getSchool()); 
  13.     } 
  14. Person_Lxl.prototype=new Person(); 
  15. Person_Lxl.prototype.getSchool=function(){ 
  16.     return this.school; 
  17. Person_Lxl.prototype.info=function(){ 
  18.     alert(this.getName()+" , "+this.getAge()+" , "+this.getSchool()); 
  19.  
  20.     var p=new Person_Lxl("lxl",25,"zh"); 
  21.     var p1=new Person_Lxl("lhw",1,"yz"); 
  22. alert(p.getName()+" , "+p.getAge()+" , "+p.getSchool()); 
  23. alert(p1.getName()+" , "+p1.getAge()+" , "+p1.getSchool()); 
  24. p.info();