摘要:
完成代码 function debounce(fn,delay){ let timerId; return function(...args){ clearTimeout(timerId); timerId=setTimeout(()=>{ fn.apply(this,args); },delay) 阅读全文
posted @ 2025-02-15 09:57
lao-jiawei
阅读(12)
评论(0)
推荐(0)
摘要:
完整代码 Function.prototype.myCall = function (ctx, ...args) { ctx = ctx null || ctx undefined ? globalThis : Object(ctx); const fn = this; const key = Sy 阅读全文
posted @ 2025-02-15 09:07
lao-jiawei
阅读(8)
评论(0)
推荐(0)

浙公网安备 33010602011771号