Function.prototype.bind=function(ctx,...lastArgs){ let self=this return (...laterArgs)=>self.apply(ctx,lastArgs.concat(laterArgs)) }
js实现bind
原文:https://www.cnblogs.com/wjgoblin/p/11267137.html