prototype1.4简介_yj

2021-04-05 09:37

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


prototype1.4简介_yj.doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:二年级持轻物掷远说课稿

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: