I would like to know what $.each()jquery means ,What does it select?
$.each()
Is there an equivalent in the prototype?
$.each()picks nothing. This is just a collection iteration utility.
When you do:
$('someSelector').each(function() { // do something });
jQuery internally calls:
jQuery.each( this, callback, args );
... with thisrepresenting a consistent set.
this
http://github.com/jquery/jquery/blob/master/src/core.js#L231
You can just as easily call it manually.
jQuery.each( $('someSelector'), function() { // do something });
I think you should take a look at
jQuery.each ()
From the documentation
$.each() .each(),, , , jQuery . $.each() , (JavaScript ) . , . ( .)
jQuery each :
each
.each() DOM . DOM, jQuery. , , 0. , DOM, this .
refer.each()
$.each() .each(), , , jQuery. $.each() , , ( JavaScript) . . ( .)
$. each()
jQuery. , . jQuery.each.
jQuery.each
$.each() $().each(), jQuery. $.each() , . . ( , Javascript , .) - , . 1 2 3
$.each([52, 97], function(index, value) { alert(index + ': ' + value); });
:
0: 52 1: 97