jquery $.each 和for 怎么跳出循环(终止本次循环)

1、for循环中我们使用continue;终止本次循环计入下一个循环,使用break终止整个循环。

2、而在jquery中 $.each则对应的使用return true  和return false。用break会报错:Illegal break statement

原文地址:https://www.cnblogs.com/dreamflower/p/5052017.html