Home > Web Front-end > JS Tutorial > body text

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

WBOY
Release: 2016-05-16 16:47:00
Original
937 people have browsed it

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.

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!