摘要: 完成代码 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 阅读(1) 评论(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 阅读(3) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示
主题色彩