作者站點: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加載完成后回調一個函數,而不是等待頁面內容加載完畢)
聲明:本網頁內容旨在傳播知識,若有侵權等問題請及時與本網聯系,我們將在第一時間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com