JQ报错:Uncaught SyntaxError: Illegal continue statement: no surrounding iteration statement报错

Today, in writing carousel figure, after stopping the timer you want to reopen a timer, but do not know why the brain pumping even want to continue this run out of the timer continues to run the next time (of course, is not desirable, but or tried 2333), then on the error. Uncaught SyntaxError: Illegal continue statement: no surrounding iteration statement

 

In the jquery for writing in and continue the timer will complain (have not tried others, but when I see online that will foreach error)

Solution after the search:

Use return; or return true; instead continue statement;
use return false; instead break statement;

 

Bo original Portal: https://blog.csdn.net/likeflower950/article/details/75807430

 

Guess you like

Origin www.cnblogs.com/strawberry-zyyyy/p/11291380.html