Function.prototype.bind=function(ctx,...lastArgs){
let self=this
return (...laterArgs)=>self.apply(ctx,lastArgs.concat(laterArgs))
}
Function.prototype.bind=function(ctx,...lastArgs){
let self=this
return (...laterArgs)=>self.apply(ctx,lastArgs.concat(laterArgs))
}
转载于:https://www.cnblogs.com/wjgoblin/p/11267137.html