作者站点:http://www.robertnyman.com/
详细介绍:http://www.robertnyman.com/2007/12/17/domassistant-25-released-css-selector-support-new-ajax-methods-and-more-goodies-added/
2.5版包含的新特性:
Full CSS1-3 selector support 完全的CSS1-3选择器支持
New AJAX methods: load and get 新增的load和get方法
Enhanced performance and extra checks for memory leaks 增强的性能和额外的内存泄露的检测
XPath Support Xpath选择器支持
DOMAssistant now creates its own scope to make use of private properties 创建了自己运行域保护自身的所有属性
Also, in terms of code quality Robert has taken the extra step to ensure that the whole library is JSLint validated.
此外,为保证代码质量,整个代码库通过了JSLint的验证,
The main purpose of DOMAssistant is to provide a solid foundation to build upon without all of the extras sometimes included in other libraries. As such, DOMAssistant focuses on:
DomAssistant的主要目的在于提供一个不依赖任何第三方类库的基础类库,DomAssistant专注于一下特性:
Element selection (through CSS selectors or enhanced methods). 元素选择(通过CSS选择器或更强大的选择方法)
CSS handling (adding and removing CSS classes). CSS属性操作(添加或删除CSS Class)
Event handling (adding and removing events). 事件操作 (添加删除事件)
Content manipulation (add or remove elements). 页面内容操作(添加删除页面元素)
AJAX interaction (getting content from other sources, and adding it to the document).
Ajax交互 (从外部获取内容并添加到页面指定位置)
DOM loaded (calling functions when the DOM is loaded, as opposed to the document with all dependencies).
DOM加载完成 (当页面DOM加载完成后回调一个函数,而不是等待页面内容加载完毕)