【JS】【16】退出$.each()循环

正文:

Java中跳出循环是用break和continue,但在jQuery中是用return。

return false → break→ 跳出循环体

return true → continue  → 跳出本次循环

参考博客:

jquery $.each()循环退出 - lixld的专栏 - CSDN博客
https://blog.csdn.net/lixld/article/details/73742326

原文地址:https://www.cnblogs.com/huashengweilong/p/10909516.html