lichenabson

Results 2 comments of lichenabson

不使用 call apply方法 ``` Function.prototype.bind = function() { const context = arguments[0] || window const argument = Array.from(arguments).splice(1, arguments.length - 1) return (()=>{ context.fn = this context.fn(...argument) delete context.fn })...