子类对象名.__proto__=父类对象名;
标签:__,15,name,proto,面向对象,原型,var,console,log From: https://www.cnblogs.com/wenjie001/p/17727751.html
var use={
name:'岳不群',
age:123,
ff:function () {
console.log(this.name+'在跑步');
}
};
var niao={
fei:function () {
console.log(this.name+'在飞');
}
};
var liyunlong={
name: '李云龙'
};
liyunlong.__proto__=niao;