bind
Function.prototype.myBind = function(obj,...rest){ let that = this let bound = function(...args){ let params = [...rest,...args] that.apply(this.constructor === that ? this : obj,params) } bound.prototype = that.prototype return bound }
以自己现在的努力程度,还没有资格和别人拼天赋