一种可替代 setInterval() 和 setTimeout() 的解决方案,适用于未聚焦的窗口中运行。
A replacement for setInterval() and setTimeout() which works in unfocused windows.