摘要: 1functionSuperType(){2this.property=true;3}45SuperType.prototype.getSuperValue=function(){6returnthis.property;7};89functionSubType(){10this.subproperty=false;11}1213//继承了SuperType14SubType.prototype=newSuperType();1516SubType.prototype.getSuperValue=function(){17returnthis.subproperty;18};1920varin 阅读全文
posted @ 2012-04-26 09:25 小猩猩君 阅读(252) 评论(0) 推荐(0) 编辑