fn(arg1, arg2, ...)fn.call(thisArg, arg1, arg2, ...)fn.apply(thisArg, [arg1, arg2, ...])
其中,
call和
apply使得函数内的 this 被绑定到
thisArg上。
同时可以使用
fn.bind(thisArg, ...)来产生绑定到某个 this 的函数变体。

fn(arg1, arg2, ...)fn.call(thisArg, arg1, arg2, ...)fn.apply(thisArg, [arg1, arg2, ...])
其中,
call和
apply使得函数内的 this 被绑定到
thisArg上。
同时可以使用
fn.bind(thisArg, ...)来产生绑定到某个 this 的函数变体。