李凌
2025-12-16 9337c3cf960b60078558b7f942fd27f1ab39364b
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);
  }
}