Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jquery
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
夏彬
jquery
Commits
46001b94
Commit
46001b94
authored
Jan 07, 2007
by
Jörn Zaefferer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for #754
parent
955fdb87
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
jquery.js
src/jquery/jquery.js
+12
-6
No files found.
src/jquery/jquery.js
View file @
46001b94
...
@@ -1165,15 +1165,21 @@ jQuery.extend({
...
@@ -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.
*
* @example $.each( [0,1,2], function(i, n){
* alert( "Item #" + i + ": " + n );
* });
* });
* @desc Iterates over the items in an array, accessing both the current item and its index.
* @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){
* @example $.each( { name: "John", lang: "JS" }, function(i
, n
){
* alert( "Name: " + i + ", Value: " +
this
);
* alert( "Name: " + i + ", Value: " +
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 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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment