ドキュメント

API/1.3/Core

From jQuery JavaScript Library

(Redirected from Core)
Jump to: navigation, search

NameType
$(...) The jQuery Function:
NameType
jQuery( expression, context )Returns: jQuery
This function accepts a string containing a CSS selector which is then used to match a set of elements.
jQuery( html, ownerDocument )Returns: jQuery
Create DOM elements on-the-fly from the provided String of raw HTML.
jQuery( elements )Returns: jQuery
Wrap jQuery functionality around a single or an array of DOM Element(s).
jQuery( callback )Returns: jQuery
A shorthand for $(document).ready().
jQuery Object Accessors:

NameType
each( callback )Returns: jQuery
Execute a function within the context of every matched element.
size( )Returns: Number
The number of elements in the jQuery object.
lengthReturns: Number
The number of elements in the jQuery object.
selectorReturns: String
New in jQuery 1.3 A selector representing selector originally passed to jQuery().
contextReturns: Element

New in jQuery 1.3 The DOM node context originally passed to jQuery() (if none was passed then context will be equal to the document).

eq( position )Returns: jQuery
Reduce the set of matched elements to a single element.
get( )Returns: Array<Element>
Access all matched DOM elements.
get( index )Returns: Element
Access a single matched DOM element at a specified index in the matched set.
index( subject )Returns: Number
Searches every matched element for the object and returns the index of the element, if found, starting with zero. If a jQuery object is passed, only the first element is checked.
Data:
NameType
data( name )Returns: Any
Returns value at named data store for the element, as set by data(name, value).
data( name, value )Returns: jQuery
Stores the value in the named spot.
removeData( name )Returns: jQuery
Removes named data store from an element.
queue( name )Returns: Array<Function>
Returns a reference to the first element's queue (which is an array of functions).
queue( name, callback )Returns: jQuery
Adds a new function, to be executed, onto the end of the queue of all matched elements.
queue( name, queue )Returns: jQuery
Replaces the queue of all matched element with this new queue (the array of functions).
dequeue( name )Returns: jQuery
Removes a queued function from the front of the queue and executes it.
Plugins:
NameType
jQuery.fn.extend( object )Returns: jQuery
Extends the jQuery element set to provide new methods (used to make a typical jQuery plugin).
jQuery.extend( object )Returns: jQuery
Extends the jQuery object itself.
Interoperability:
NameType
jQuery.noConflict( )Returns: jQuery
Run this function to give control of the $ variable back to whichever library first implemented it.
jQuery.noConflict( extreme )Returns: jQuery
Revert control of both the $ and jQuery variables to their original owners. Use with discretion.