摘要: 1 1、原型链继承 2 function superType(name){ 3 this.name= 'milk'; 4 } 5 super.prototype.sayName=function(){ 6 console.log(this.name); 7 } 8 function subType (age){... 阅读全文
posted @ 2016-05-09 22:07 CHWYH 阅读(156) 评论(0) 推荐(0) 编辑