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