function Person(name) {
this.name = name || 'john';
this.sex = function(){
console.log('my name is', this.name)
}
}
Person.prototype.set=function (){console.log(111)}
Person.prototype.sexe='male';
function Cat(name){
Person.call(this);
this.name = name || 'cena'
};
var Super = function(){};
Super.prototype = Person.prototype;
Cat.prototype = new Super();
Cat.prototype.constructor = Cat;
var b = new Cat();
console.log(Cat.sex());