日期:2014-05-16 浏览次数:20455 次
/**
 * Inheritance implementation for Javascript.
 */
var inherit = function(childClass, parentClass) 
{
	var tmpConstructor = function() {};
  	tmpConstructor.prototype = parentClass.prototype;
  	childClass.superClass = parentClass.prototype;
  	childClass.prototype = new tmpConstructor();
  	childClass.prototype.constructor = childClass;
        return  childClass;
};