- bind与call、apply的区别,他不会执行函数
- 可以接受参数、改变this指向
- 他是函数原型上的方法,所以需要返回出一个函数
在这里插入代码片
Function.prototype.myBind = function(page,...info){
return ()=>{
this.call(page,...info)
}
}
在这里插入代码片
Function.prototype.myBind = function(page,...info){
return ()=>{
this.call(page,...info)
}
}