目录 js函数手写(一) js函数手写(二) 1.手写call Function.prototype.myCall = function (context = window, ...args) { let fn = Symbol(); context[fn] = this; let result = context[fn](...args); delete context[fn]; return result; } 2.手写apply Function.prototype.myApply = function (context = window, arg...