经过了数月的开发,Dojo在愚人节前一天,1.3正式版。这个版本加入了许多新功能,亮点之一是对IE8和WebKit (Chrome, Safari)的兼容性和性能的处理。
下载地址:http://download.dojotoolkit.org/release-1.3.0/
Dojo 1.3的公共API:http://download.dojotoolkit.org/release-1.3.0/cheat.html
以下是一些新增的API的用法:
dojo.create, dojo.destroy, dojo.empty, dojo.place
// create a div.
var n = dojo.create("div");
// create a div with content and styles
var n = dojo.create("div", { innerHTML:"hi!", style:{ height:"200px" } });
// destroy the node safely
dojo.destroy(n);
// place an anchor somewhere, before the node with id="someNodeId"
var a = dojo.create("a", { href:"http://dojotoolkit.org" }, "someNodeId", "before");
// empty the contents of a node safely:
dojo.empty("someNodeId");
dojo.query(".nodes").empty();
// place a new LI in an UL at the first position
dojo.place("
“, “someUl”, “first”); // complex creation in dojo.query. passes through dojo.place dojo.query(“#myNode”).addContent(“hi there!”, “first”);
Alex’s开发了新的选择器引擎(selector engine):Acme,大大增强了本已经很快的dojo.query。John Resig的Sizzle选择器引擎也可做为构建(build-time)选项。
英文官方原文:http://www.dojotoolkit.org/2009/03/31/dojo-1-3-now-available