原型继承(圣杯模式)
function inherit(Target,Origin){
function F(){};//中间层
F.prototype = Origin.prototype;
Target.prototype = new F();
Target.prototype.constuctor = Target;
Target.prototype.uber = Origin.prototype//便于直接找到Target继承自谁
}
Father.prototype.lastName = 'yang';
function Father(){
};
function Son(){
};
inherit(Son,Father);
var father = new Father();
var son = new Son();