继承
a继承b的属性
- 方法一
a=Object.create(b)
- 方法二
//扩展b的原型
b.prototype.a='I love you'
b.prototype.a=arr
b.prototype.a=function(){
}
b.prototype={
a:"I love you",
b:fn,
c:arr
}
- 方法三
b.apply(a,arg1,...args)
You can change the world with your heart,even a lot of changes sometimes unless you won't geiv up....