1. jQuery的each实现continue和break
?
continue----return true || return
break----return false
var arr = [1,2,3,4,5,6,7,8,9,10]; $.each(arr, function(k, v){ if(k == 3){ return; //return false; }else{ console.log(arr[k]); } }); for(var i = 0; i < arr.length; i++){ if(k == 3){ continue; //break; }else{ console.log(arr[k]); } }?
?