// 圣杯模式
var inherit = function(){
var F = function(){};
return function(target,origin){
F.prototype = origin.prototype;
target.prototype = new F();
target.prototype.constructor = target;
target.prototype.uber = origin.prototype;
}
// 圣杯模式
var inherit = function(){
var F = function(){};
return function(target,origin){
F.prototype = origin.prototype;
target.prototype = new F();
target.prototype.constructor = target;
target.prototype.uber = origin.prototype;
}