阅读背景:

使用setInterval时,如果我在Chrome中切换标签并返回,则滑块会疯狂追赶

来源:互联网 

I have a jQuery slider on my site and the code going to the next slide is in a function called nextImage. I used setInterval to run my function on a timer, and it does exactly what I want: it runs my slides on a timer. BUT, if I go to the site in Chrome, switch to another tab and return, the slider runs through the slides continuously until it 'catches up'. Does anyone know of a way to fix this. The following is my code.I have a jQuery slider on my site and the code




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: