zoujiandong afc79a0f26 1111
2025-07-30 13:43:14 +08:00

16 lines
344 B
JavaScript

"use strict";
const throttle = function(fn, wait = 1500) {
var flag = true;
return function() {
if (flag) {
fn.apply(this, arguments);
flag = false;
setTimeout(() => {
flag = true;
}, wait);
}
};
};
exports.throttle = throttle;
//# sourceMappingURL=../../.sourcemap/mp-weixin/utils/throttle.js.map