JavaScript DOM树

zepto

DOM

$.contains

dom tree

append
prepend
before
afeter
insertBefore
insertAfter
appendTo
preendTo
remove
replaceWith
wrap
unwrap
wraplnner
wrapAll

event

$.Event
on
off
bind
unbind
live
die
delegate
undelegate
ready
touch

  • tap
    tap
    singletap
    longtap
    doubletap
  • swipe
    swipe
    swipeUp
    swipeDown
    swipeLeft
    swipeRight

node

basic

html
css
data
text
prop
val
attr
animate
removeAttr

visibility

hide
show
toggle

class

addClass
removeClass
toggleClass
hasClass

layout

scrollTop
scrollLeft
height
width
offset

language util

string

$.trim

$.camelCase

array

$.extend

$.inArray

$.grep

$.each

$.map

type

$.type

$.isFunction

$.isArray

$.isPlainObject

collection

array

get
size
each
slice
forEach
reduce
concat
push
map
[]

operation

add
remove
clone

traversal

contents
children
first
last
parent
parents
sinlings
next
prev

selector

not
filter
has
eq
find
closet

ajax

$.ajax

$.post

$.get

$.getJSON

你可能感兴趣的:(JavaScript DOM树)