摘要:
类式继承//extend functionfunction extend(subClass,superClass){ var F=function(){}; F.prototype=superClass.prototype; subClass.prototype=new F(); subCl... 阅读全文
摘要:
// Interface Constructorvar Interface=function(name,methods){ if(arguments.length!=2){ throw new Error("Interface constructor called with "+argume... 阅读全文