1. 原型链继承
function Parent(){
this.name='jean'
}
Child.prototype===new Parent();
2. 借用构造函数继承
用.call()和.apply()将父类构造函数引入子类函数。
function Child(){
Parent.call(this,'')
}
3. 组合继承
function Child(name){
Parent.call(this,name);
}
Child.prototype===new Parent()
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。