模拟传参实现
1 | Function.prototype.bind = function (...args) { |
完整版perf: 加上构造函数作用域实现
1 | Function.prototype.bind = Function.prototype.bind || function (context, ...args1) { |
1 | Function.prototype.bind = function (...args) { |
1 | Function.prototype.bind = Function.prototype.bind || function (context, ...args1) { |