JS call apply bind 方法的区别 Better

  参数1 参数2及之后参数 返回
call() `this`绑定的对象 参数 执行结果
apply() `this`绑定的对象 参数的数组 执行结果
bind() `this`绑定的对象 参数 函数

示例:

// apply
add.apply(null, [1, 2]);
原文地址:https://www.cnblogs.com/huangtq/p/14494041.html