Each of in jquery jumps out of the loop
- 2020-03-30 03:03:29
- OfStack
Continue can use return true
Break can be used with return false
1. Using return false inside a function jumps out of function;
2. Use return false in the callback function of each to break out of the each loop;
3. You can use break.
4. Use return true, equivalent to continue.
Break can be used with return false
1. Using return false inside a function jumps out of function;
2. Use return false in the callback function of each to break out of the each loop;
3. You can use break.
4. Use return true, equivalent to continue.