【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

posted @ 2019-05-25 17:03  花生喂龙  阅读(2431)  评论(0编辑  收藏  举报