Classroom dictation

There li = $

Add a child at the end of the element

appded()

appdedTo()

Add a child at the beginning of the element prepend ()

prependTo()

 

With the node

after()

insertAftr()

 

before()

insertBefore()

 

Delete Node

removeClass()

Empty the contents of the node

detach()

empoty()

 

Replacement Node

replaceAll()

replacewith()

 

Copy nodes

$($selectorl).clonce([includeEvents])

Binding events

bind (type, fn); type: the type of event (click, etc.) fn: binding a plurality of method functions: bind {type: fn, type: fn, type: fn}

unbind([type],[fn]);

 

Guess you like

Origin www.cnblogs.com/liyado/p/10965707.html