摘要: 学习了几种继承的模式,但是还是对于其实际运用还不是很了解,如有对其比较了解的,希望能够指导指导。 默认继承 function Parent(name){ this.name=name||'ad'; } Parent.prototype.say=function(){ return this.name 阅读全文
posted @ 2016-02-15 15:37 秋虹连宇 阅读(168) 评论(0) 推荐(0) 编辑