创建一个新函数,该函数在被调用时,其 this 关键字被设置为指定的值
method | function | 要绑定的函数 |
thisArg | object | 绑定函数调用时用作 this 上下文的值 |
function | 一个新函数,该函数调用时会使用指定的 this 上下文来执行原函数 |
scheduler.bind(method, thisArg);
此方法作为兼容 IE8 的替代方案,用于替代 Function.prototype.bind() 函数。
版本 6.0 中新增
返回顶部