function animal(){
this.name = "动物";
}
animal.prototype.ph=100;
然后
var Bird=new animal();
这个Bird会继承animal的prototype下的属性 也就是现在Bird.ph=100
但是我想让这个Bird也有自己的特性
然后我想建一个bird1 让这个bird1继承animal和Bird的属性
也就是 层级的类 怎么写??
慕码人1127456
stone310
慕的地8582982
随时随地看视频慕课网APP
相关分类