mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-14 21:36:45 +08:00
测试
This commit is contained in:
@@ -356,7 +356,9 @@
|
||||
let lastExecTime = 0;
|
||||
return function (...args) {
|
||||
const now = Date.now();
|
||||
console.log(now,'now')
|
||||
if (now - lastExecTime >= delay) {
|
||||
console.log('执行了')
|
||||
func.apply(this, args);
|
||||
lastExecTime = now;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user