mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Fix for #754
This commit is contained in:
parent
955fdb87a7
commit
46001b94f3
20
src/jquery/jquery.js
vendored
20
src/jquery/jquery.js
vendored
@ -1165,15 +1165,21 @@ jQuery.extend({
|
|||||||
* as $().each() - which is used to iterate, exclusively, over a jQuery
|
* as $().each() - which is used to iterate, exclusively, over a jQuery
|
||||||
* object. This function can be used to iterate over anything.
|
* object. This function can be used to iterate over anything.
|
||||||
*
|
*
|
||||||
* @example $.each( [0,1,2], function(i){
|
* The callback has two arguments:the key (objects) or index (arrays) as first
|
||||||
* alert( "Item #" + i + ": " + this );
|
* the first, and the value as the second.
|
||||||
* });
|
|
||||||
* @desc Iterates over the items in an array, accessing both the current item and its index.
|
|
||||||
*
|
*
|
||||||
* @example $.each( { name: "John", lang: "JS" }, function(i){
|
* @example $.each( [0,1,2], function(i, n){
|
||||||
* alert( "Name: " + i + ", Value: " + this );
|
* alert( "Item #" + i + ": " + n );
|
||||||
* });
|
* });
|
||||||
* @desc Iterates over the properties in an Object, accessing both the current item and its key.
|
* @desc This is an example of iterating over the items in an array,
|
||||||
|
* accessing both the current item and its index.
|
||||||
|
*
|
||||||
|
* @example $.each( { name: "John", lang: "JS" }, function(i, n){
|
||||||
|
* alert( "Name: " + i + ", Value: " + n );
|
||||||
|
* });
|
||||||
|
*
|
||||||
|
* @desc This is an example of iterating over the properties in an
|
||||||
|
* Object, accessing both the current item and its key.
|
||||||
*
|
*
|
||||||
* @name $.each
|
* @name $.each
|
||||||
* @param Object obj The object, or array, to iterate over.
|
* @param Object obj The object, or array, to iterate over.
|
||||||
|
Loading…
Reference in New Issue
Block a user