Jquery 官方文档

Resource

Related

Selectors

Attribute

  • [name^="value"]
  • [name!="value"]
  • [name]
  • [name*="value"]
  • [name="value"]
  • [name="value"][name2="value2"]
  • [name|="value"]
  • [name~="value"]
  • [name$="value"]

Forms

  • :button
  • :checkbox
  • :checked
  • :disabled
  • :enabled
  • :file
  • :focus
  • :image
  • :input
  • :password
  • :radio
  • :reset
  • :selected
  • :submit
  • :text

Basics

  • .class
  • *
  • #id
  • element
  • selector1, selectorN, ...

Visibility Filters

  • :hidden
  • :visible

Basic Filters

  • :animated
  • :eq()
  • :even
  • :first
  • :gt()
  • :header
  • :last
  • :lt()
  • :not()
  • :odd

Child Filters

  • :first-child
  • :last-child
  • :nth-child()
  • :only-child

Content Filters

  • :contains()
  • :empty
  • :has()
  • :parent

Hierarchy

  • ancestor descendant
  • parent > child
  • prev + next
  • prev ~ siblings

Attributes / CSS

Attributes

  • .attr()
  • .prop()
  • .removeAttr()
  • .removeProp()
  • .val()

CSS

  • .addClass()
  • .css()
  • .hasClass()
  • .removeClass()
  • .toggleClass()
  • jQuery.cssHooks

Dimensions

  • .height()
  • .innerHeight()
  • .innerWidth()
  • .outerHeight()
  • .outerWidth()
  • .width()

Offset

  • .offset()
  • .offsetParent()
  • .position()
  • .scrollLeft()
  • .scrollTop()

Data

  • .data()
  • .removeData()
  • jQuery.data()
  • jQuery.hasData()
  • jQuery.removeData()

Manipulation

Copying

  • .clone()

DOM Insertion, Around

  • .wrap()
  • .wrapAll()
  • .wrapInner()

DOM Insertion, Inside

  • .append()
  • .appendTo()
  • .html()
  • .prepend()
  • .prependTo()
  • .text()

DOM Insertion, Outside

  • .after()
  • .before()
  • .insertAfter()
  • .insertBefore()

DOM Removal

  • .detach()
  • .empty()
  • .remove()
  • .unwrap()

DOM Replacement

  • .replaceAll()
  • .replaceWith()

Traversing

Filtering

  • .eq()
  • .filter()
  • .first()
  • .has()
  • .is()
  • .last()
  • .map()
  • .not()
  • .slice()

Miscellaneous Traversing

  • .add()
  • .andSelf()
  • .contents()
  • .end()

Tree Traversal

  • .children()
  • .closest()
  • .find()
  • .next()
  • .nextAll()
  • .nextUntil()
  • .parent()
  • .parents()
  • .parentsUntil()
  • .prev()
  • .prevAll()
  • .prevUntil()
  • .siblings()

Events

Event Object

  • event.currentTarget
  • event.data
  • event.isDefaultPrevented()
  • event.isImmediatePropagationStopped()
  • event.isPropagationStopped()
  • event.namespace
  • event.pageX
  • event.pageY
  • event.preventDefault()
  • event.relatedTarget
  • event.result
  • event.stopImmediatePropagation()
  • event.stopPropagation()
  • event.target
  • event.timeStamp
  • event.type
  • event.which

Mouse Events

  • .click()
  • .dblclick()
  • .focusin()
  • .focusout()
  • .hover()
  • .mousedown()
  • .mouseenter()
  • .mouseleave()
  • .mousemove()
  • .mouseout()
  • .mouseover()
  • .mouseup()
  • .toggle()

Browser Events

  • .error()
  • .resize()
  • .scroll()

Document Loading

  • .holdReady()
  • .load()
  • .ready()
  • .unload()

Event Handler Attachment

  • .bind()
  • .delegate()
  • .die()
  • .live()
  • .off()
  • .on()
  • .one()
  • .trigger()
  • .triggerHandler()
  • .unbind()
  • .undelegate()

Form Events

  • .blur()
  • .change()
  • .focus()
  • .select()
  • .submit()

Keyboard Events

  • .keydown()
  • .keypress()
  • .keyup()

Effects

Basics

  • .hide()
  • .show()

Custom

  • .animate()
  • .clearQueue()
  • .delay()
  • .dequeue()
  • .queue()
  • .stop()
  • jQuery.dequeue()
  • jQuery.fx.interval
  • jQuery.fx.off
  • jQuery.queue()

Fading

  • .fadeIn()
  • .fadeOut()
  • .fadeTo()
  • .fadeToggle()

Sliding

  • .slideDown()
  • .slideToggle()
  • .slideUp()

Ajax

Global Ajax Event Handlers

  • .ajaxComplete()
  • .ajaxError()
  • .ajaxSend()
  • .ajaxStart()
  • .ajaxStop()
  • .ajaxSuccess()

Helper Functions

  • .serialize()
  • .serializeArray()
  • jQuery.param()

Low-Level Interface

Shorthand Methods

  • jQuery.get()
  • jQuery.getJSON()
  • jQuery.getScript()
  • jQuery.post()

Core

jQuery Object

  • jQuery.noConflict()
  • jQuery.sub()
  • jQuery.when()
  • jQuery()

DOM Element Methods

  • .get()
  • .index()
  • .size()
  • toArray()

Internals

  • .context
  • .jquery
  • .length
  • .pushStack()
  • .selector
  • jQuery.error

Deferred Object

  • .promise()
  • deferred.always()
  • deferred.done()
  • deferred.fail()
  • deferred.isRejected()
  • deferred.isResolved()
  • deferred.notify()
  • deferred.notifyWith()
  • deferred.pipe()
  • deferred.progress()
  • deferred.promise()
  • deferred.reject()
  • deferred.rejectWith()
  • deferred.resolve()
  • deferred.resolveWith()
  • deferred.state()
  • deferred.then()

Callbacks Object

Utilities

Utilities

  • each
  • jQuery.browser
  • jQuery.contains()
  • jQuery.each()
  • jQuery.extend()
  • jQuery.globalEval()
  • jQuery.grep()
  • jQuery.inArray()
  • jQuery.isArray()
  • jQuery.isEmptyObject()
  • jQuery.isFunction()
  • jQuery.isNumeric()
  • jQuery.isPlainObject()
  • jQuery.isWindow()
  • jQuery.isXMLDoc()
  • jQuery.makeArray()
  • jQuery.map()
  • jQuery.merge()
  • jQuery.noop()
  • jQuery.now()
  • jQuery.parseJSON()
  • jQuery.parseXML()
  • jQuery.proxy()
  • jQuery.support
  • jQuery.trim()
  • jQuery.type()
  • jQuery.unique()