Home  >  Article  >  Web Front-end  >  Each() statement in jquery to jump out of the loop_jquery

Each() statement in jquery to jump out of the loop_jquery

WBOY
WBOYOriginal
2016-05-16 16:47:00938browse

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.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn