Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 309 Bytes

index.md

File metadata and controls

19 lines (14 loc) · 309 Bytes

Function

索引

  1. bind
Function.prototype.bind = function () {
  var fn = this,
    _this = arguments[0],
    args = Array.prototype.slice.call(arguments, 1);

  return function () {
    fn.apply(_this, args.concat(arguments));
  };
};