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
0f458cf8
Commit
0f458cf8
authored
Aug 26, 2006
by
John Resig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a bunch of documentation fixes.
parent
48ec1004
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
7 deletions
+15
-7
jquery.js
src/jquery/jquery.js
+15
-7
No files found.
src/jquery/jquery.js
View file @
0f458cf8
...
@@ -193,7 +193,15 @@ jQuery.fn = jQuery.prototype = {
...
@@ -193,7 +193,15 @@ jQuery.fn = jQuery.prototype = {
* argument representing the position of the element in the matched
* argument representing the position of the element in the matched
* set.
* set.
*
*
* @example $("img").each(function(){ this.src = "test.jpg"; });
* @example $("img").each(function(){
* this.src = "test.jpg";
* });
* @before <img/> <img/>
* @result <img src="test.jpg"/> <img src="test.jpg"/>
*
* @example $("img").each(function(i){
* alert( "Image #" + i + " is " + this );
* });
* @before <img/> <img/>
* @before <img/> <img/>
* @result <img src="test.jpg"/> <img src="test.jpg"/>
* @result <img src="test.jpg"/> <img src="test.jpg"/>
*
*
...
@@ -666,7 +674,7 @@ jQuery.fn = jQuery.prototype = {
...
@@ -666,7 +674,7 @@ jQuery.fn = jQuery.prototype = {
* @name add
* @name add
* @type jQuery
* @type jQuery
* @param Array<Element> els An array of Elements to add
* @param Array<Element> els An array of Elements to add
* @cat
jQuery
* @cat
DOM/Traversing
*/
*/
/**
/**
...
@@ -680,7 +688,7 @@ jQuery.fn = jQuery.prototype = {
...
@@ -680,7 +688,7 @@ jQuery.fn = jQuery.prototype = {
* @name add
* @name add
* @type jQuery
* @type jQuery
* @param Element el An Element to add
* @param Element el An Element to add
* @cat
jQuery
* @cat
DOM/Traversing
*/
*/
add
:
function
(
t
)
{
add
:
function
(
t
)
{
return
this
.
pushStack
(
jQuery
.
merge
(
this
,
t
.
constructor
==
String
?
return
this
.
pushStack
(
jQuery
.
merge
(
this
,
t
.
constructor
==
String
?
...
@@ -695,7 +703,7 @@ jQuery.fn = jQuery.prototype = {
...
@@ -695,7 +703,7 @@ jQuery.fn = jQuery.prototype = {
* @member jQuery
* @member jQuery
* @param {String} expr The expression with which to filter
* @param {String} expr The expression with which to filter
* @type Boolean
* @type Boolean
* @cat
jQuery
* @cat
DOM/Traversing
*/
*/
is
:
function
(
expr
)
{
is
:
function
(
expr
)
{
return
expr
?
jQuery
.
filter
(
expr
,
this
).
r
.
length
>
0
:
this
.
length
>
0
;
return
expr
?
jQuery
.
filter
(
expr
,
this
).
r
.
length
>
0
:
this
.
length
>
0
;
...
@@ -2201,7 +2209,7 @@ jQuery.macros = {
...
@@ -2201,7 +2209,7 @@ jQuery.macros = {
/**
/**
* Get a set of elements containing the unique ancestors of the matched
* Get a set of elements containing the unique ancestors of the matched
* set of elements.
* set of elements
(except for the root element)
.
*
*
* @example $("span").ancestors()
* @example $("span").ancestors()
* @before <html><body><div><p><span>Hello</span></p><span>Hello Again</span></div></body></html>
* @before <html><body><div><p><span>Hello</span></p><span>Hello Again</span></div></body></html>
...
@@ -2229,7 +2237,7 @@ jQuery.macros = {
...
@@ -2229,7 +2237,7 @@ jQuery.macros = {
/**
/**
* Get a set of elements containing the unique ancestors of the matched
* Get a set of elements containing the unique ancestors of the matched
* set of elements.
* set of elements
(except for the root element)
.
*
*
* @example $("span").ancestors()
* @example $("span").ancestors()
* @before <html><body><div><p><span>Hello</span></p><span>Hello Again</span></div></body></html>
* @before <html><body><div><p><span>Hello</span></p><span>Hello Again</span></div></body></html>
...
@@ -2655,4 +2663,4 @@ jQuery.macros = {
...
@@ -2655,4 +2663,4 @@ jQuery.macros = {
}
}
};
};
jQuery
.
init
();
jQuery
.
init
();
\ No newline at end of file
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