Home > Article > Web Front-end > Each() statement in jquery to jump out of the loop_jquery
continue can use return true
break can use return false
1. Using return false inside a function is to jump out of the function;
2. Using return false in the callback function of each is Break out of each loop;
3. You can use break.
4. Use return true, which is equivalent to continue.