摘要: function Car(Name,Age){ this.Name = Name; this.Age = Age;}Car.prototype.showAge = function(){ alert(this.Age);}function MoCar(Name,Age){ Car.call(this,Name,Age);}MoCar.prototype = new Car();MoCar.prototype.showName = function(){ alert(this.Name);}var obj = new MoCar("jianboqi",12);obj.show 阅读全文
posted @ 2013-03-07 11:04 理想空间 阅读(185) 评论(0) 推荐(0) 编辑