我一直在研究Javascript中的设计模式并找到了http://tcorral.github.com/Design-Patterns-in-Javascript/Template/withoutHook/index.html成为一个很好的来源。谁能解释一下使用ParentClass.apply(this)的意义varCaffeineBeverage=function(){};varCoffee=function(){CaffeineBeverage.apply(this);};Coffee.prototype=newCaffeineBeverage();PS:我试着评论Caffein