摘要:
Function.prototype.mycall = function (ctx, ...args) { ctx = ctx undefined || ctx null ? globalThis : Object(ctx) const fn = this; const key = Symbol(' 阅读全文
摘要:
function forcall(fun) { console.log(fun) return function f1(...args) { console.log(11, args) if (args.length >= fun.length) { return fun(...args) } el 阅读全文