国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁(yè) > 語言 > JavaScript > 正文

DOMAssitant最新版 DOMAssistant 2.5發(fā)布

2024-05-06 14:18:35
字體:
供稿:網(wǎng)友
一個(gè)google code上的project
剛發(fā)布了2.5版
號(hào)稱又要做一個(gè)大而全的js的庫(kù),要和jQuery, prototype, YUI, Ext對(duì)抗的,哈哈
With this release of DOMAssistant, I feel that it can seriously compete
with the major JavaScript libraries on the market. It has a very easy
syntax to select or manipulate elements, and with the core
functionality anyone needs, without having to worry about web browser
differences
簡(jiǎn)單看了一下語法,其實(shí)他能做的YUI應(yīng)該基本也都能做,不過Enhanced performance and extra checks for memory leaks這個(gè)ms比較強(qiáng),有空看一看。
其次,它有一些比較方便的語法,Selector使用的CSS和XPath的語法肯定比YUI的YAHOO.util.get然后再getElementsByClassName之類的效率高(另:新版的YUI也已經(jīng)發(fā)布了Selector),另外同樣做一次Ajax請(qǐng)求,它有最常用的get和load方法,取得數(shù)據(jù)和找到并更新一個(gè)元素的內(nèi)容可以在一行代碼之內(nèi)完成,而用YUI來做這個(gè)事情,可能需要10行代碼吧,anyway,大不了自己包裝YUI的時(shí)候再寫個(gè)最最常用的load和get方法好了,細(xì)節(jié)的方法還是需要的,畢竟不是所有的請(qǐng)求都是get和load這么簡(jiǎn)單的處理。

作者站點(diǎn):http://www.robertnyman.com/
詳細(xì)介紹: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 增強(qiáng)的性能和額外的內(nèi)存泄露的檢測(cè)
XPath Support Xpath選擇器支持
DOMAssistant now creates its own scope to make use of private properties  創(chuàng)建了自己運(yùn)行域保護(hù)自身的所有屬性
Also, in terms of code quality Robert has taken the extra step to ensure that the whole library is JSLint validated.
此外,為保證代碼質(zhì)量,整個(gè)代碼庫(kù)通過了JSLint的驗(yàn)證,


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的主要目的在于提供一個(gè)不依賴任何第三方類庫(kù)的基礎(chǔ)類庫(kù),DomAssistant專注于一下特性:

Element selection (through CSS selectors or enhanced methods).  元素選擇(通過CSS選擇器或更強(qiáng)大的選擇方法)
CSS handling (adding and removing CSS classes).  CSS屬性操作(添加或刪除CSS Class)
Event handling (adding and removing events).  事件操作 (添加刪除事件)
Content manipulation (add or remove elements).  頁(yè)面內(nèi)容操作(添加刪除頁(yè)面元素)
發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表

圖片精選

主站蜘蛛池模板: 梁山县| 措美县| 麻江县| 钦州市| 洪雅县| 静海县| 阿城市| 辽中县| 靖安县| 长兴县| 齐河县| 南郑县| 乃东县| 孟州市| 金塔县| 都兰县| 平潭县| 漳州市| 育儿| 宜良县| 塘沽区| 射阳县| 金堂县| 麻阳| 巫山县| 朝阳区| 包头市| 即墨市| 湘潭县| 鄄城县| 嘉兴市| 河间市| 娱乐| 攀枝花市| 大厂| 仙居县| 东方市| 阿图什市| 杭锦旗| 游戏| 白河县|