感谢分享,做了一下第四题,分享一下。话说react,reduce都没看啊,第二题也没思路啊。 Function.prototype.bindX = function(data, ...outerArgs) { let _this = this; //将add保存起来 return (...innerArgs) => { return _this.call(data, ...outerArgs.concat(...innerArgs)); //将add的this指向data } }