摘要: 先说明一下在js中一般的继承是怎么写的 var farther=function(name){ this.name=name }; farther.prototype={ constructor:farther, //还原构造器 id:10 }; var child=function(sex,age 阅读全文
posted @ 2016-01-27 19:08 俗家弟子 阅读(893) 评论(0) 推荐(0) 编辑