标签: bind
手撕call、bind、apply
返回值:
call/apply:fun执行的结果 bind:返回fun的拷贝,并拥有指定的this值和初始参数
参数
thisArg(可选):
若thisArg存在,fun的this指……
call,apply,bind区别
JavaScript 为我们专门提供了一些函数方法来帮我们更优雅的处理函数内部this的指向问题,常用的有 bind()、call()、apply()三种方法。
call,apply,bi……