feature: 添加静态文件

This commit is contained in:
zhengxinonly
2023-09-29 14:57:03 +08:00
parent 2c3c79b21f
commit ba5e2cf67b
68 changed files with 153780 additions and 5 deletions
+25
View File
@@ -0,0 +1,25 @@
layui.define(["jquery", "element"], function (exports) {
var $ = layui.jquery;
var tools = new (function () {
/**
* @since 防抖算法
*
* @param fn 要执行的方法
* @param time 防抖时间参数
*/
this.debounce = function (fn, time) {
var timer = null;
return function () {
var arguments = arguments[0];
if (timer) {
clearTimeout(timer);
}
timer = setTimeout(function () {
fn(arguments);
}, time);
};
};
})();
exports("tools", tools);
});