jQuery 1.8.3 中文文档 Translated by
Michael Leo
, Thanks
为之漫笔
for original version. Welcome to visit jQuery Cheatsheet from
Oscar Otero
.
Last update:
2012-12-24
15:39:45
(Chinese Standard Time)
Bug report or Feedback:
Michael Leo
Ajax
全局Ajax事件句柄
ajaxComplete()
ajaxError()
ajaxSend()
ajaxStart()
ajaxStop()
ajaxSuccess()
辅助函数
jQuery.param()
serialize()
serializeArray()
底层接口
jQuery.ajax()
jQuery.ajaxPrefilter()
jQuery.ajaxSetup()
快捷方法
jQuery.get()
jQuery.getJSON()
jQuery.getScript()
jQuery.post()
load()
属性
addClass()
attr()
hasClass()
html()
prop()
removeAttr()
removeClass()
removeProp()
toggleClass()
val()
回调对象
callbacks.add()
callbacks.disable()
callbacks.empty()
callbacks.fire()
callbacks.fireWith()
callbacks.fired()
callbacks.has()
callbacks.lock()
callbacks.locked()
callbacks.remove()
jQuery.Callbacks()
核心
jQuery()
jQuery.holdReady()
jQuery.noConflict()
jQuery.sub()
jQuery.when()
CSS
addClass()
css()
hasClass()
height()
innerHeight()
innerWidth()
jQuery.cssHooks
offset()
outerHeight()
outerWidth()
position()
removeClass()
scrollLeft()
scrollTop()
toggleClass()
width()
数据
clearQueue()
data()
dequeue()
jQuery.data()
jQuery.dequeue()
jQuery.hasData()
jQuery.queue()
jQuery.removeData()
queue()
removeData()
延迟对象
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()
jQuery.when()
promise()
尺寸
height()
innerHeight()
innerWidth()
outerHeight()
outerWidth()
width()
动画
基本
hide()
show()
toggle()
自定义
animate()
clearQueue()
delay()
dequeue()
jQuery.fx.interval
jQuery.fx.off
queue()
stop()
渐变
fadeIn()
fadeOut()
fadeTo()
fadeToggle()
滑动
slideDown()
slideToggle()
slideUp()
事件
浏览器事件
error()
resize()
scroll()
文档加载
load()
ready()
unload()
事件追加
bind()
delegate()
die()
jQuery.proxy()
live()
off()
on()
one()
trigger()
triggerHandler()
unbind()
undelegate()
事件对象
event.currentTarget
event.data
event.delegateTarget
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
表单事件
blur()
change()
focus()
select()
submit()
键盘事件
focusin()
focusout()
keydown()
keypress()
keyup()
鼠标事件
click()
dblclick()
focusin()
focusout()
hover()
mousedown()
mouseenter()
mouseleave()
mousemove()
mouseout()
mouseover()
mouseup()
toggle()
表单
blur()
change()
focus()
jQuery.param()
select()
serialize()
serializeArray()
submit()
val()
内部
context
jQuery.error()
jquery
pushStack()
操作
Class属性
addClass()
hasClass()
removeClass()
toggleClass()
复制
clone()
包裹
unwrap()
wrap()
wrapAll()
wrapInner()
内部插入
append()
appendTo()
html()
prepend()
prependTo()
text()
外部插入
after()
before()
insertAfter()
insertBefore()
DOM删除
detach()
empty()
remove()
unwrap()
DOM替换
replaceAll()
replaceWith()
通用属性
attr()
prop()
removeAttr()
removeProp()
val()
样式属性
css()
height()
innerHeight()
innerWidth()
offset()
outerHeight()
outerWidth()
position()
scrollLeft()
scrollTop()
width()
杂项
集合操作
each()
jQuery.param()
数据存储
data()
removeData()
DOM元素方法
get()
index()
size()
toArray()
设置方法
jQuery.noConflict()
偏移
offset()
offsetParent()
position()
scrollLeft()
scrollTop()
插件编写
属性
全局jQuery对象属性
jQuery.browser
jQuery.browser.version
jQuery.fx.interval
jQuery.fx.off
jQuery.support
选择器
属性
[attribute*="value"]
[attribute|="value"]
[attribute~="value"]
[attribute$="value"]
[attribute="value"]
[attribute]
[attributeFilter1][attributeFilter2][attributeFilterN]
[attribute!="value"]
[attribute^="value"]
基本
*
.class
element
#id
selector1, selector2, selectorN
基本筛选
:animated
:eq(index)
:even
:first
:focus
:gt(index)
:header
:last
:lt(index)
:not(selector)
:odd
子元素筛选
:first-child
:last-child
:nth-child(index/even/odd/equation)
:only-child
内容筛选
:contains(text)
:empty
:has(selector)
:parent
表单
:button
:checkbox
:checked
:disabled
:enabled
:file
:focus
:image
:input
:password
:radio
:reset
:selected
:submit
:text
层级
parent > child
ancestor descendant
prev + next
prev ~ siblings
jQuery扩展
:animated
[attribute!="value"]
:button
:checkbox
:eq(index)
:even
:file
:first
:gt(index)
:has(selector)
:header
:hidden
:image
:input
:last
:lt(index)
:odd
:parent
:password
:radio
:reset
:selected
:submit
:text
:visible
可见性筛选
:hidden
:visible
遍历
筛选
eq()
filter()
first()
has()
is()
last()
map()
not()
slice()
其他遍历
add()
andSelf()
contents()
end()
not()
树遍历
children()
closest()
find()
next()
nextAll()
nextUntil()
offsetParent()
parent()
parents()
parentsUntil()
prev()
prevAll()
prevUntil()
siblings()
工具
clearQueue()
dequeue()
jQuery.boxModel
jQuery.browser
jQuery.browser.version
jQuery.contains()
jQuery.data()
jQuery.dequeue()
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.queue()
jQuery.removeData()
jQuery.support
jQuery.trim()
jQuery.type()
jQuery.unique()
queue()
版本
1.0 版
add()
addClass()
after()
ajaxComplete()
ajaxError()
ajaxSend()
ajaxStart()
ajaxStop()
ajaxSuccess()
*
animate()
append()
appendTo()
attr()
[attribute*="value"]
[attribute|="value"]
[attribute~="value"]
[attribute$="value"]
[attribute="value"]
[attribute]
[attributeFilter1][attributeFilter2][attributeFilterN]
[attribute!="value"]
[attribute^="value"]
before()
bind()
blur()
:button
change()
:checkbox
:checked
parent > child
children()
.class
click()
clone()
css()
dblclick()
ancestor descendant
:disabled
each()
element
:empty
empty()
:enabled
end()
:eq(index)
error()
:even
event.preventDefault()
event.stopPropagation()
event.target
event.type
fadeIn()
fadeOut()
fadeTo()
:file
filter()
find()
:first
focus()
get()
:gt(index)
height()
:hidden
hide()
hover()
html()
#id
:image
index()
:input
insertAfter()
insertBefore()
is()
jQuery()
jQuery.ajax()
jQuery.boxModel
jQuery.browser
jQuery.browser.version
jQuery.each()
jQuery.extend()
jQuery.get()
jQuery.getJSON()
jQuery.getScript()
jQuery.grep()
jQuery.map()
jQuery.merge()
jQuery.noConflict()
jQuery.post()
jQuery.trim()
keydown()
keypress()
keyup()
:last
length
load()
load()
:lt(index)
mousedown()
mouseenter()
mouseleave()
mousemove()
mouseout()
mouseover()
mouseup()
selector1, selector2, selectorN
next()
prev + next
prev ~ siblings
:not(selector)
not()
:odd
:parent
parent()
parents()
:password
prepend()
prependTo()
prev()
pushStack()
:radio
ready()
remove()
removeAttr()
removeClass()
:reset
resize()
scroll()
select()
:selected
serialize()
show()
siblings()
size()
slideDown()
slideToggle()
slideUp()
:submit
submit()
:text
text()
toggle()
toggle()
toggleClass()
trigger()
unbind()
unload()
val()
:visible
width()
wrap()
1.0.4 版
event.pageX
event.pageY
jQuery.globalEval()
1.1 版
attr()
event.data
jQuery.ajaxSetup()
one()
1.1.2 版
eq()
1.1.3 版
event.which
jQuery.browser
jQuery.browser.version
jQuery.unique()
1.1.4 版
:contains(text)
event.relatedTarget
:first-child
:has(selector)
jQuery.isXMLDoc()
:last-child
:nth-child(index/even/odd/equation)
:only-child
slice()
1.2 版
andSelf()
:animated
contents()
dequeue()
hasClass()
:header
jQuery.inArray()
jQuery.isFunction()
jQuery.makeArray()
jQuery.param()
map()
nextAll()
offset()
position()
prevAll()
queue()
replaceAll()
replaceWith()
serializeArray()
stop()
triggerHandler()
wrapAll()
wrapInner()
1.2.3 版
data()
jQuery.data()
jQuery.removeData()
removeData()
1.2.6 版
event.timeStamp
innerHeight()
innerWidth()
outerHeight()
outerWidth()
scrollLeft()
scrollTop()
1.3 版
closest()
context
die()
event.currentTarget
event.isDefaultPrevented()
event.isImmediatePropagationStopped()
event.isPropagationStopped()
event.result
event.stopImmediatePropagation()
jQuery.dequeue()
jQuery.fx.off
jQuery.isArray()
jQuery.queue()
jQuery.support
live()
pushStack()
toggle()
toggleClass()
1.4 版
add()
addClass()
after()
append()
before()
bind()
clearQueue()
closest()
css()
data()
delay()
detach()
filter()
first()
focusin()
focusout()
has()
html()
index()
jQuery()
jQuery.contains()
jQuery.data()
jQuery.isEmptyObject()
jQuery.isPlainObject()
jQuery.noop()
jQuery.param()
jQuery.proxy()
last()
nextUntil()
not()
offset()
parentsUntil()
prepend()
prevUntil()
removeAttr()
removeClass()
replaceWith()
text()
toArray()
toggleClass()
unwrap()
val()
wrap()
wrapAll()
wrapInner()
1.4.1 版
die()
height()
jQuery.error()
jQuery.parseJSON()
width()
1.4.2 版
delegate()
undelegate()
1.4.3 版
bind()
blur()
change()
click()
data()
dblclick()
delegate()
die()
error()
event.namespace
fadeIn()
fadeOut()
fadeTo()
focus()
focusin()
focusout()
hide()
jQuery.cssHooks
jQuery.data()
jQuery.fx.interval
jQuery.isWindow()
jQuery.now()
jQuery.type()
keydown()
keypress()
keyup()
load()
mousedown()
mouseenter()
mouseleave()
mousemove()
mouseout()
mouseover()
mouseup()
resize()
scroll()
select()
show()
slideDown()
slideToggle()
slideUp()
submit()
toggle()
unbind()
undelegate()
unload()
1.4.4 版
fadeToggle()
1.5 版
clone()
deferred.done()
deferred.fail()
deferred.isRejected()
deferred.isResolved()
deferred.promise()
deferred.reject()
deferred.rejectWith()
deferred.resolve()
deferred.resolveWith()
deferred.then()
jQuery.ajax()
jQuery.ajaxPrefilter()
jQuery.get()
jQuery.getJSON()
jQuery.getScript()
jQuery.hasData()
jQuery.parseXML()
jQuery.post()
jQuery.sub()
jQuery.when()
1.5.1 版
jQuery.ajax()
jQuery.support
1.6 版
attr()
closest()
deferred.always()
deferred.pipe()
find()
:focus
is()
jQuery.holdReady()
jQuery.map()
nextUntil()
parentsUntil()
prevUntil()
promise()
prop()
removeProp()
undelegate()
1.7 版
callbacks.add()
callbacks.disable()
callbacks.empty()
callbacks.fire()
callbacks.fireWith()
callbacks.fired()
callbacks.has()
callbacks.lock()
callbacks.locked()
callbacks.remove()
deferred.notify()
deferred.notifyWith()
deferred.pipe()
deferred.progress()
deferred.state()
deferred.then()
event.delegateTarget
is()
jQuery.Callbacks()
jQuery.isNumeric()
off()
on()
removeAttr()
removeData()
stop()
M
E
N
U