最新回答 / 小于飛飛
requireJS本網(wǎng)站有相關(guān)課程。自動化,有g(shù)runt,不過還是要有一些基礎(chǔ),在學(xué)習(xí)課程會更好。
2014-10-12
最贊回答 / 278500368
講師的意思呢,是說 通過 man.prototype = new people; 這種方式進(jìn)行繼承之后,在man.prototype上對getName方法進(jìn)行修改,不會影響people.prototype上的同名方法例如:?function People (){??this.name = 'frog';??this.age = 29;?}??People.prototype.getName = function(){??return this.name;?}??function Man(){??? thi...
2014-10-09