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
2b82ffbb
Commit
2b82ffbb
authored
Jan 14, 2007
by
Jörn Zaefferer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a few docs
parent
213118c8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
13 deletions
+12
-13
jquery.js
src/jquery/jquery.js
+11
-12
selector.js
src/selector/selector.js
+1
-1
No files found.
src/jquery/jquery.js
View file @
2b82ffbb
...
@@ -915,7 +915,7 @@ jQuery.fn = jQuery.prototype = {
...
@@ -915,7 +915,7 @@ jQuery.fn = jQuery.prototype = {
*
*
* @name not
* @name not
* @type jQuery
* @type jQuery
* @param
Array|
jQuery elems A set of elements to remove from the jQuery set of matched elements.
* @param jQuery elems A set of elements to remove from the jQuery set of matched elements.
* @cat DOM/Traversing
* @cat DOM/Traversing
*/
*/
not
:
function
(
t
)
{
not
:
function
(
t
)
{
...
@@ -932,11 +932,11 @@ jQuery.fn = jQuery.prototype = {
...
@@ -932,11 +932,11 @@ jQuery.fn = jQuery.prototype = {
},
},
/**
/**
* Adds
the elements matched by the expression to the jQuery object. This
* Adds
more elements, matched by the given expression,
*
can be used to concatenate the result sets of two expression
s.
*
to the set of matched element
s.
*
*
* @example $("p").add("span")
* @example $("p").add("span")
* @before <p>Hello</p><
p><span>Hello Again</span></p
>
* @before <p>Hello</p><
span>Hello Again</span
>
* @result [ <p>Hello</p>, <span>Hello Again</span> ]
* @result [ <p>Hello</p>, <span>Hello Again</span> ]
*
*
* @name add
* @name add
...
@@ -946,7 +946,8 @@ jQuery.fn = jQuery.prototype = {
...
@@ -946,7 +946,8 @@ jQuery.fn = jQuery.prototype = {
*/
*/
/**
/**
* Adds the on the fly created elements to the jQuery object.
* Adds more elements, created on the fly, to the set of
* matched elements.
*
*
* @example $("p").add("<span>Again</span>")
* @example $("p").add("<span>Again</span>")
* @before <p>Hello</p>
* @before <p>Hello</p>
...
@@ -961,15 +962,13 @@ jQuery.fn = jQuery.prototype = {
...
@@ -961,15 +962,13 @@ jQuery.fn = jQuery.prototype = {
/**
/**
* Adds one or more Elements to the set of matched elements.
* Adds one or more Elements to the set of matched elements.
*
*
* This is used to add a set of Elements to a jQuery object.
*
* @example $("p").add( document.getElementById("a") )
* @example $("p").add( document.getElementById("a") )
* @before <p>Hello</p><p><span id="a">Hello Again</span></p>
* @before <p>Hello</p><p><span id="a">Hello Again</span></p>
* @result [ <p>Hello</p>, <span id="a">Hello Again</span> ]
* @result [ <p>Hello</p>, <span id="a">Hello Again</span> ]
*
*
* @example $("p").add(
[document.getElementById("a"), document.getElementById("b")]
)
* @example $("p").add(
document.forms[0].elements
)
* @before <p>Hello</p><p><
span id="a">Hello Again</span><span id="b">And Again</span></p
>
* @before <p>Hello</p><p><
form><input/><button/></form
>
* @result [ <p>Hello</p>, <
span id="a">Hello Again</span>, <span id="b">And Again</span
> ]
* @result [ <p>Hello</p>, <
input/>, <button/
> ]
*
*
* @name add
* @name add
* @type jQuery
* @type jQuery
...
@@ -2184,7 +2183,7 @@ jQuery.each( [ "eq", "lt", "gt", "contains" ], function(i,n){
...
@@ -2184,7 +2183,7 @@ jQuery.each( [ "eq", "lt", "gt", "contains" ], function(i,n){
*
*
* @name width
* @name width
* @type jQuery
* @type jQuery
* @param
Number|String
val Set the CSS property to the specified value.
* @param
String|Number
val Set the CSS property to the specified value.
* @cat CSS
* @cat CSS
*/
*/
...
@@ -2214,7 +2213,7 @@ jQuery.each( [ "eq", "lt", "gt", "contains" ], function(i,n){
...
@@ -2214,7 +2213,7 @@ jQuery.each( [ "eq", "lt", "gt", "contains" ], function(i,n){
*
*
* @name height
* @name height
* @type jQuery
* @type jQuery
* @param
Number|String
val Set the CSS property to the specified value.
* @param
String|Number
val Set the CSS property to the specified value.
* @cat CSS
* @cat CSS
*/
*/
...
...
src/selector/selector.js
View file @
2b82ffbb
...
@@ -405,7 +405,7 @@ jQuery.extend({
...
@@ -405,7 +405,7 @@ jQuery.extend({
* @name $.nth
* @name $.nth
* @type DOMElement
* @type DOMElement
* @param DOMElement cur The element to search from.
* @param DOMElement cur The element to search from.
* @param
Number|String
num The Nth result to match. Can be a number or a string (like 'even' or 'odd').
* @param
String|Number
num The Nth result to match. Can be a number or a string (like 'even' or 'odd').
* @param String dir The direction to move in (pass in something like 'previousSibling' or 'nextSibling').
* @param String dir The direction to move in (pass in something like 'previousSibling' or 'nextSibling').
* @cat DOM/Traversing
* @cat DOM/Traversing
*/
*/
...
...
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