mirror of
https://gitee.com/TSpecific/tuniao-ui.git
synced 2026-03-09 09:14:00 +08:00
Pre Merge pull request !10 from wssam/N/A
This commit is contained in:
@@ -20,7 +20,6 @@ export function throttleFun(func, delay=500) {
|
|||||||
timer = setTimeout(() => {
|
timer = setTimeout(() => {
|
||||||
//执行前清空
|
//执行前清空
|
||||||
timer = null;
|
timer = null;
|
||||||
console.log("执行了")
|
|
||||||
func.apply(this, args);
|
func.apply(this, args);
|
||||||
}, delay);
|
}, delay);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user