chore:构架

This commit is contained in:
陈淳
2023-12-14 10:15:23 +08:00
parent d8d1b10de7
commit 6cc079aac7
91 changed files with 14635 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
//设置防抖,保证无论拖动窗口大小,只执行一次获取浏览器宽高的方法
export const debounce = (fun, delay) => {
let timer;
return function () {
if (timer) {
clearTimeout(timer);
}
timer = setTimeout(() => {
fun();
}, delay);
};
};