jQuery API 3.2.0 速查表 --作者:
Shifone
Selector
-
Basic
-
hierarchy
-
Basic Filter
-
Content
-
Visibility
-
Attribute
-
child element
-
Form
-
Form object attributes
-
confusing selector
core
-
jQuery core functions
-
jQuery object access
-
Data cache
-
Queue control
-
Plugin mechanism
-
Multiple libraries coexist
ajax
-
Ajax request
-
$.ajax(url,[settings])
-
load(url,[data],[callback])
-
$.get(url,[data],[fn],[type])
-
$.getJSON(url,[data],[fn])
-
$.getScript(url,[callback])
-
$.post(url,[data],[fn],[type])
-
AJAX event
-
Others
Attribute
-
Attribute
-
CSS class
-
HTML code/text/value
Document processing
-
Internal insertion
-
external insertion
-
Parcel
-
Replace
-
Delete
-
Copy
Event
-
Page loading
-
Event handling
-
on(eve,[sel],[data],fn)
1.7+
-
off(eve,[sel],[fn])
1.7+
-
bind(type,[data],fn)
3.0-
-
one(type,[data],fn)
-
trigger(type,[data])
-
triggerHandler(type, [data])
-
unbind(t,[d|f])
3.0-
-
Event delegation
-
Event Switch
-
Event
-
blur([[data],fn])
-
change([[data],fn])
-
click([[data],fn])
-
dblclick([[data],fn])
-
error([[data],fn])
-
focus([[data],fn])
-
focusin([data],fn)
-
focusout([data],fn)
-
keydown([[data],fn])
-
keypress([[data],fn])
-
keyup([[data],fn])
-
mousedown([[data],fn])
-
mouseenter([[data],fn])
-
mouseleave([[data],fn])
-
mousemove([[data],fn])
-
mouseout([[data],fn])
-
mouseover([[data],fn])
-
mouseup([[data],fn])
-
resize([[data],fn])
-
scroll([[data],fn])
-
select([[data],fn])
-
submit([[data],fn])
-
unload([[data],fn])
Effect
-
Basic
-
slide
-
fade in/out
-
Customized
-
Set up
tool
-
Browser and feature detection
-
Array and object operations
-
$.each(object,[callback])
-
$.extend([d],tgt,obj1,[objN])
-
$.grep(array,fn,[invert])
-
$.sub()
1.9-
-
$.when(deferreds)
-
$.makeArray(obj)
-
$.map(arr|obj,callback)
-
$.inArray(val,arr,[from])
-
$.toArray()
-
$.merge(first,second)
-
$.unique(array)
3.0-
-
$.uniqueSort(array)
3.0+
-
$.parseJSON(json)
3.0-
-
$.parseXML(data)
-
Function operation
-
Test operation
-
String operations
-
URL
-
Plugin development
Delayed object
-
def.done(d,[d])
-
def.fail(failCallbacks)
-
def.isRejected()
1.7-
-
def.isResolved()
1.7-
-
def.reject(args)
-
def.rejectWith(c,[a])
-
def.resolve(args)
-
def.resolveWith(c,[a])
-
def.then(d[,f][,p])
1.8*
-
def.promise([ty],[ta])
-
def.pipe([d],[f],[p])
1.8-
-
def.always(al,[al])
-
def.notify(args)
1.7+
-
def.notifyWith(c,[a])
1.7+
-
def.progress(proCal)
1.7+
-
def.state()
1.7+