Prototype之详细解说[转]
/* Prototype JavaScript framework, version 1.4.0 * (c) 2005 Sam Stephenson <sam@conio.net> * * Prototype is freely distributable under the terms of an MIT-style license. * For details, see the Prototype web site: http://prototype.conio.net/ * 这是一个JavaScript的框架,致力于简化动态的Web开发,完全按照面对对象的思想 * 进行Javascript开发,添加了迭代器的概念增强Javascript的设计能力。 * Prototype框架构思独特充满了技巧性的代码,方便易用的工具类! * /*-------------------------------------------------------------------------- */ /* 【Prototype】定义一个全局对象,提供一个全局的基本信息和工具 */ var Prototype = { Version: ' 1.4.0 ' , // 可以作为版本检测用 // 用于脚本检测的正则表达式,经常使用所以放在这里起到全局常量的作用 ScriptFragment: ' (?