摘要: (1)原型链继承 function Parent() { // 父类 this.name = 'maxixi' } function Son() { // 子类 } Son.prototype = new Parent() // 父类上的属性和方法赋值给子类的原型上 var son = new So 阅读全文
posted @ 2017-03-30 11:47 马习习 阅读(243) 评论(0) 推荐(0) 编辑