Table of Contents
1. Utility Methods ....................................................................................................................1
$ ....................................................................................................................................1
$$ ..................................................................................................................................3
$A .................................................................................................................................4
$F ..................................................................................................................................5
$H .................................................................................................................................5
$R ..................................................................................................................................6
$w ..................................................................................................................................6
Try.these ........................................................................................................................7
document.getElementsByClassName .................................................................................8
2. Ajax ....................................................................................................................................9
Ajax Options ..................................................................................................................9
Ajax.PeriodicalUpdater ................................................................................................... 12
Ajax.Request ................................................................................................................. 15
Ajax.Responders ............................................................................................................ 19
Ajax.Updater ................................................................................................................. 20
3. Array ................................................................................................................................ 23
Why you should stop using for…in to iterate (or never take it up) .................................... 23
What is a developer to do? .............................................................................................. 24
clear ............................................................................................................................. 25
clone ............................................................................................................................ 25
compact ....................................................................................................................... 25
each ............................................................................................................................. 26
first .............................................................................................................................. 26
flatten ........................................................................................................................... 26
from ............................................................................................................................ 26
indexOf ........................................................................................................................ 27
inspect .......................................................................................................................... 27
last ............................................................................................................................... 28
reduce .......................................................................................................................... 28
reverse .......................................................................................................................... 28
size .............................................................................................................................. 29
toArray ......................................................................................................................... 29
uniq ............................................................................................................................. 29
without ......................................................................................................................... 30
4. Class ................................................................................................................................. 31
create ........................................................................................................................... 31
5. Element ............................................................................................................................ 33
addClassName .............................................................................................................. 34
addMethods .................................................................................................................. 34
ancestors ...................................................................................................................... 37
评论1
最新资源