jquery Each loop, to achieve the function of break and continue:
Break ----with return false;
Continue--with return ture;
each () function is essentially a tool-class function provided by all frameworks, through which you can iterate over the property values of an object, an array, and handle it. Both jquery and jquery objects implement this method, and for jquery objects, simply delegate each method: The jquery object is passed as the first parameter to jquery's each method. In other words, The each method provided by jquery is a method call to each of the child elements in the object provided by the parameter one. The each method provided by the JQuery object is invoked on a child element within jquery.
$.each (array, [callback]) traversal, very commonvararr = ['JavaScript','PHP','Java','C + +','C #','Perl','vb','HTML','CSS','objective-c'];$.each (arr, function (key, Val) {//Firebug ConsoleConsole.log ('index in arr:'+ key +", corresponding value:"+val); //if you want to exit the loop//return false;});
jquery Each loop,