jquery跳出 each 循环,要实现break和continue的功能:
break用return false;
continue 用return ture;
jquery 跳出each循环实例
break用return false;
continue 用return ture;
jquery 跳出each循环实例
var arr = [ "abc", "ef","gggg"];
$.each(arr, function(index, value){
if (this == "abc")
return false;
}
);