Function.prototype.call5 = function(context = globalThis){// 设置 fn 为调用 myCall 的方法context.fn = this;// 获取剩余参数const otherArg = Array.from(arguments).slice(1);// 调用这个方法,将剩余参数传递进去context.fn(otherArg);// 将这个方法的执行结果传给 resultlet result = context.fn();// 删除这个变量delete context.fn;// 返回 result 结果return result;}
