摘要:
//Inspiredbybase2andPrototype(function(){varinitializing=false,fnTest=/xyz/.test(function(){xyz;})?/\b_super\b/:/.*/;//ThebaseClassimplementation(doesnothing)this.Class=function(){};//CreateanewClassthatinheritsfromthisclassClass.extend=function(prop){var_super=this.prototype;//Instantiateabaseclass 阅读全文