摘要:
一、继承的相关代码(另): // 继承关系 function People(name){ this.name = name; } People.prototype.showName = function(){ console.log(this.name); } function Student(){ 阅读全文
摘要:
继承的相关代码: <script> function Car(name,speed){ this.name = name; this.speed = speed; // 不规范的 写在方法里面会重复加载 // this.showName = function(){ // console.log(th 阅读全文