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