摘要:
完成代码 function debounce(fn,delay){ let timerId; return function(...args){ clearTimeout(timerId); timerId=setTimeout(()=>{ fn.apply(this,args); },delay) 阅读全文
摘要:
完整代码 Function.prototype.myCall = function (ctx, ...args) { ctx = ctx null || ctx undefined ? globalThis : Object(ctx); const fn = this; const key = Sy 阅读全文