반응형

http://api.jquery.com/category/version/1.4/


jQuery 1.4 API Cheat Sheet


  • .add( selector, context )

  • .addClass( function(index, class) )

  • .after( function(index) )

  • .append( function(index, html) )

  • .before( function )

  • .bind( events )

  • .clearQueue( [ queueName ] )

  • .closest( selector, [ context ] )

  • jQuery.contains( container, contained )

    containerThe DOM element that may contain the other element.

    containedThe DOM node that may be contained by the other element.

  • .css( propertyName, function(index, value) )

    propertyNameA CSS property name.

    function(index, value)A function returning the value to set. Receives the index position of the element in the set and the old value as arguments.

  • .data( obj )

  • jQuery.data()

    

  • .delay( duration, [ queueName ] )

    durationAn integer indicating the number of milliseconds to delay execution of the next item in the queue.

    queueNameA string containing the name of the queue. Defaults to fx, the standard effects queue.

  • .detach( [ selector ] )

    selectorA selector expression that filters the set of matched elements to be removed.

  • .first()

    Reduce the set of matched elements to the first in the set.

  • .focusin( handler(eventObject) )

    handler(eventObject)A function to execute each time the event is triggered.

  • .focusout( handler(eventObject) )

    handler(eventObject)A function to execute each time the event is triggered.

  • .has( selector ), .has( contained )

    selectorA string containing a selector expression to match elements against.
    containedA DOM element to match elements against.

  • .html( function(index, html) )

    function(index, html)A function returning the HTML content to set. Receives the index position of the element in the set and the old HTML value as arguments.

  • .index(), .index( selector )

    selectorA selector representing a jQuery collection in which to look for an element.

  • jQuery.isEmptyObject( object )

    objectThe object that will be checked to see if it's empty.

  • jQuery.isPlainObject( object )

    objectThe object that will be checked to see if it's an object literal.

  • jQuery( html, props )

  • .last()

    Reduce the set of matched elements to the final one in the set.

  • .nextUntil( [ selector ] )

  • jQuery.noop()

    An empty function.

  • .offset( coordinates ), .offset( function(index, coords) )

  • jQuery.param( obj, traditional )

  • .parentsUntil( [ selector ] )

    selectorA string containing a selector expression to indicate where to stop matching ancestor elements.

  • .prepend( function(index, html) )

  • .prevUntil( [ selector ] )

    selectorA string containing a selector expression to indicate where to stop matching preceding sibling elements.

  • jQuery.proxy( function, scope ), jQuery.proxy( scope, name )

    functionThe function whose scope will be changed.
    scopeThe object to which the scope of the function should be set.
    nameThe name of the function whose scope will be changed (should be a property of the 'scope' object.

  • .removeAttr()

    Remove an attribute from each element in the set of matched elements.

  • .removeClass( function(index, class) )

  • .replaceWith( function )

  • .text( function(index, text) )

  • .toArray()

    Retrieve all the DOM elements contained in the jQuery set, as an array.

  • .toggleClass( function(index, class), [ switch ] )

  • .unwrap()

    Remove the parents of the set of matched elements from the DOM, leaving the matched elements in their place.

  • .val( function )

  • .wrap( wrappingFunction )

  • .wrapAll()

    Wrap an HTML structure around all elements in the set of matched elements.

  • .wrapInner( wrappingFunction )

반응형

관련글