1
李凌
2026-01-17 a61cc184c622623672a730b71eb82e0e73b4c7d1
src/utils/utis.js
@@ -271,4 +271,11 @@
    if (typeof str !== 'string') return [];
    return str.split(separator);
}
// 清除所有定时器
export const clearAllTimers = () => {
  let highestTimeoutId = setTimeout(() => {}, 0);
  for (let i = 0; i <= highestTimeoutId; i++) {
    clearTimeout(i);
    clearInterval(i);
  }
}