{"remainingRequest":"/data/jenkins/workspace/mer.ws.baibaodun.com.cn/node_modules/thread-loader/dist/cjs.js!/data/jenkins/workspace/mer.ws.baibaodun.com.cn/node_modules/babel-loader/lib/index.js!/data/jenkins/workspace/mer.ws.baibaodun.com.cn/src/libs/debounce.js","dependencies":[{"path":"/data/jenkins/workspace/mer.ws.baibaodun.com.cn/src/libs/debounce.js","mtime":1701742078550},{"path":"/data/jenkins/workspace/mer.ws.baibaodun.com.cn/babel.config.js","mtime":1701742078504},{"path":"/data/jenkins/workspace/mer.ws.baibaodun.com.cn/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/mer.ws.baibaodun.com.cn/node_modules/thread-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/mer.ws.baibaodun.com.cn/node_modules/babel-loader/lib/index.js","mtime":456789000000}],"contextDependencies":[],"result":["/**\n * 一个简单的函数防抖\n * @param {Function} fun 需要限制执行频率的函数\n * @param {Number} delay 延迟时间，这段时间过后，才可触发第二次\n */\nexport default function (fun, delay) {\n  // 记录上一次函数触发的时间\n  var timer = null;\n  var debounced = function debounced() {\n    var ctx = this;\n    var args = arguments;\n    // 清除上一次延时器\n    if (timer) clearTimeout(timer);\n    timer = setTimeout(function () {\n      fun.apply(ctx, args);\n    }, delay);\n  };\n  return debounced;\n}",null]}