A.call(B,x,y)
1`改变函数A的this指向,使之指向B;
2` 把A函数放到B中运行,x和y是A函数的参数。
//父类 Personfunction Person() {this.sayName = function() {return this.name;}}//子类 Chinesefunction Chinese(name) {//借助 call 实现继承Person.call(this);this.name = name;this.ch = function() {alert('我是中国人');}}//测试var chinese = new Chinese('成龙');//调用 父类方法console.log(chinese.sayName()); //输出 成龙详见:https://www.cnblogs.com/huatong/p/4573104.html