prototype1.4简介_yj
prototype1.4简介_yj
一:简介.......................................................................................................................... 3 二:一些实用的函数 ........................................................................................................ 3
2.1 使用$()方法 ........................................................................................................ 3 2..2使用$F()函数 ...................................................................................................... 4
2.3 使用$A()函数 ...................................................................................................... 4 2.4 使用$H() 函数 .................................................................................................... 5 2.5 使用$R()函数 ...................................................................................................... 5 2.6 使用Try.these()函数............................................................................................. 6 三:Ajax对象 ................................................................................................................. 6
3.1 使用Ajax.Request类 ........................................................................................... 7
3.2 使用Ajax.Updater类 ........................................................................................... 9 四:枚举.........................................................................................................................11
4.1循环, Ruby样式的...............................................................................................11 4.2 Your arrays on steroids ......................................................................................... 12 五:prototype.js参考............................................................................................... 13
5.1 JavaScript类扩展 ............................................................................................... 13
5.1.1 对 Object的扩展 ................................................................................... 13 5.1.2 对Number的扩展 .................................................................................. 13
5.1.3 对 Function扩展.................................................................................... 14 5.1.4 对String的扩展 ..................................................................................... 15 5.1.5 对 Array的扩展 .................................................................................... 15 5.2 document DOM扩展 ........................................................................................ 16 5.3 Event扩展 ........................................................................................................ 16 5.4 在prototype.js中定义新的对象和类 ................................................................. 17
5.4.1 The Prototype object............................................................................... 17 5.4.2 The Enumerable object........................................................................... 18 5.4.3 The Hash object ..................................................................................... 20 5.4.4 The ObjectRange class........................................................................... 20 5.4.5 The Class object ..................................................................................... 21 5.4.6 The Ajax object ....................................................................................... 21 5.4.7 The Ajax.Responders object ................................................................... 21 5.4.8 The Ajax.Base class ............................................................................... 22 5.4.9 The Ajax.Request class .......................................................................... 22 5.4.10 The Ajax.Updater class ......................................................................... 24 5.4.11 The Ajax.PeriodicalUpdater class .......................................................... 25 5.4.12 The Element object ............................................................................... 26 5.4.13 The Element.ClassNames class ........................................................... 27 5.4.14 The Abstract object ............................................................................... 28 5.4.15 The Abstract.Insertion class .................................................................. 28 5.4.16 The Insertion object .............................................................................. 28 5.4.17 The Insertion.Before class .................................................................... 28 5.4.18 The Insertion.Top class ......................................................................... 28 5.4.19 The Insertion.Bottom class.................................................................... 29
百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说教育文库prototype1.4简介_yj在线全文阅读。
相关推荐: