call 方法模拟实现
1 | Function.prototype.call = function(context, ...args) { |
apply 方法模拟实现
1 | Function.prototype.apply = function(context, args) { |
bind 方法模拟实现
1 | if (typeof Function.prototype.bind !== 'function') { |
1 | Function.prototype.call = function(context, ...args) { |
1 | Function.prototype.apply = function(context, args) { |
1 | if (typeof Function.prototype.bind !== 'function') { |
微信支付
支付宝