SOURCE

function P(name,sex){
  this.name  = name
  this.sex = sex
}
P.prototype.say = function(){
	console.log('我的名字是'+ this.name)
}

function F(){}
F.prototype = P.prototype

function C(){
  P.apply(this,arguments)
}
C.prototype  = new F()
C.uber  = P.prototype
C.prototype.constructor = C



var c1 = new C('xiix','man')
c1.say()
console.log(c1.name)
console.log(c1.sex)
console 命令行工具 X clear

                    
>
console