js的call方法

obj1.method.call(obj2,arg1,arg2,arg3...)

call方法的作用就是

把obj1的方法放到obj2对象上使用

arg1,arg2....是参数,传给mehtod的哟

转载于:https://www.cnblogs.com/hhs6880/p/6638415.html

原文地址:https://www.cnblogs.com/twodog/p/12140951.html