Ajax Libraries
Each library is available via both google.load(), and directly via <script/> tag. The google.load() approach offers the most functionality and performance. In the sections that follow, we document all of the libraries that are available. For each library we list it's name (as in the name used in google.load(), all of the versions that we have on hand for the library, etc.
-
jQuery
- name: jquery
- versions: 1.2.3, 1.2.6
-
load request:
google.load("jquery", "1.2.6"); -
extras: uncompressed:true,
e.g.,
google.load("jquery", "1.2", {uncompressed:true}); - path: http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js
- path(u): http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.js
- site: http://jquery.com/
- note: 1.2.5 and 1.2.4 are not hosted due to their short and unstable lives in the wild...
-
prototype
- name: prototype
- versions: 1.6.0.2
-
load request:
google.load("prototype", "1.6.0.2"); - path: http://ajax.googleapis.com/ajax/libs/prototype/1.6.0.2/prototype.js
- site: http://www.prototypejs.org/
-
script.aculo.us
- name: scriptaculous
- versions: 1.8.1
-
load request:
google.load("scriptaculous", "1.8.1"); - path: http://ajax.googleapis.com/ajax/libs/scriptaculous/1.8.1/scriptaculous.js
- site: http://script.aculo.us/
-
note: this library depends on
prototype. before loading this module, you must loadprototypee.g.:google.load("prototype", "1.6"); google.load("scriptaculous", "1.8.1");
-
mootools
- name: mootools
- versions: 1.11
-
load request:
google.load("mootools", "1.11"); -
extras: uncompressed:true,
e.g.,
google.load("mootools", "1.11", {uncompressed:true}); - path: http://ajax.googleapis.com/ajax/libs/mootools/1.11/mootools-yui-compressed.js
- path(u): http://ajax.googleapis.com/ajax/libs/mootools/1.11/mootools.js
- site: http://mootools.net/
-
dojo
- name: dojo
- versions: 1.1.1
-
load request:
google.load("dojo", "1.1.1"); -
extras: uncompressed:true,
e.g.,
google.load("dojo", "1.1.1", {uncompressed:true}); - path: http://ajax.googleapis.com/ajax/libs/dojo/1.1.1/dojo/dojo.xd.js
- path(u): http://ajax.googleapis.com/ajax/libs/dojo/1.1.1/dojo/dojo.xd.js.uncompressed.js
- site: http://dojotoolkit.org/
本文档详细介绍了通过google.load()方法及<script/>标签加载多种Ajax库的方法,包括jQuery、Prototype、Scriptaculous、MooTools和Dojo等。提供了各库的不同版本、加载请求语法、路径及依赖关系等关键信息。
142

被折叠的 条评论
为什么被折叠?



