框架比較
表1對(duì)本文中討論的五個(gè)框架提供詳細(xì)的比較
|
Prototype |
jQuery |
YUI |
ExtJS |
MooTools |
Latest Version |
1.6.1 |
1.4.1 |
3.00 |
3.1 |
1.2.4 |
License |
MIT |
MIT & GPL |
BSD |
Commercial & GPL v3 |
MIT |
|
|
|
Browser Compatibility |
|
|
IE Support |
6.0+ |
6.0+ |
6.0+ |
6.0+ |
6.0+ |
Firefox Support |
1.5+ |
2.0+ |
3.0+ |
1.5+ |
2.0+ |
Safari Support |
2.0.4+ |
3.0+ |
4.0+ |
3.0+ |
2.0+ |
Opera Support |
9.25+ |
9.0+ |
10.0+ |
9.0+ |
9.0+ |
Chrome Support |
1.0+ |
1.0+ |
Not verified |
Not verified |
Not verified |
|
|
|
Core Features |
|
|
Ajax Support |
Yes |
Yes |
Yes |
Yes |
Yes |
DOM Manipulation |
Yes |
Yes |
Yes |
Yes |
Yes |
DOM Traversal |
Yes |
Yes |
Yes |
Yes |
Yes |
Event Handling |
Yes |
Yes |
Yes |
Yes |
Yes |
JSON |
Yes |
Yes |
Yes |
Yes |
Yes |
Selectors |
Yes |
Yes |
Yes |
Yes |
Yes |
|
|
|
UX/UI Enhancements |
|
|
Accordion |
No |
jQuery UI |
No |
Yes |
MooTools More |
Animation |
scriptaculous |
Yes |
Yes |
Yes |
Yes |
Auto Completion |
scriptaculous |
No |
Yes |
Yes |
No |
Browser History |
scriptaculous |
No |
Yes |
Yes |
No |
Calendar |
No |
jQuery UI |
Yes |
Yes |
No |
Charting |
No |
No |
Yes |
Yes |
No |
Drag and Drop |
scriptaculous |
jQuery UI |
Yes |
Yes |
MooTools More |
Grids |
No |
No |
Yes |
Yes |
MooTools More |
Progress Bar |
No |
jQuery UI |
Yes |
Yes |
No |
Resizing |
No |
jQuery UI |
Yes |
Yes |
No |
Rich Text Editor |
No |
No |
Yes |
Yes |
No |
Slider |
scriptaculous |
jQuery UI |
Yes |
Yes |
MooTools More |
Tabs |
No |
jQuery UI |
Yes |
Yes |
No |
Themes |
No |
jQuery UI |
Yes |
Yes |
MooTools More |
Tree Views |
No |
No |
Yes |
Yes |
No |
其他值得注意的框架
為了簡(jiǎn)潔,本文只討論五個(gè)比較流行的框架,這并不意味著這是最流行的、最好的、功能最豐富的。
其它的一些框架也值得一提、值得一看。
- Cappuccino
- Dojo
- Glow
- GWT
- MochiKit
- Qooxdoo
- Rialto
- Rico
- SproutCore
- Spry
- UIZE
回顧
在本文中,你已經(jīng)了解到JavaScript框架的概念,知道它在網(wǎng)站和網(wǎng)絡(luò)應(yīng)用發(fā)展中的好處。對(duì)這些框架的共同功能有一個(gè)總體描述,并用實(shí)例說(shuō)明了它的應(yīng)用。同時(shí)你也了解到五個(gè)框架的一個(gè)或一些用戶體驗(yàn)和用戶界面。最后,你得到了一份直觀的表格,突出顯示每個(gè)框架具有或不具有的特色。有了這些信息,在為你或你的團(tuán)隊(duì)作出明智選擇之前,你可以進(jìn)一步研究這些框架。
資源
- (developerWorks, November 2005) explains how to
build Ajax-based Web applications.
- Learn about Dojo.
- Read the articleDojo concepts for Java developers(developerWorks, October 2008) to bridge the gap from Java code to Dojo so that you can get up to speed quickly and use the toolkit when developing your applications.
- Read Call SOAP Web services with Ajax,
Part 1: Build the Web services client (developerWorks, October 2005) to learn how to implement a Web browser-based SOAP Web services client using the Ajax design pattern.
- Overcome
security threats for Ajax applications (developerWorks, June 2007) discusses the threats associated with Ajax technologies and gives you some best practices to avoid them.
- Mastering
Ajax, Part 1: Introduction to Ajax (developerWorks, December 2005) explains how HTML, JavaScript, DHTML, and DOM work together to make extremely efficient Web development an easy reality.
- Simplify Ajax development with jQuery
(developerWorks, April 2007) examines the jQuery philosophy, explains its features and functions, and gives you some common Ajax tasks.
- Using Ajax with DB2
(developerWorks, August 2007) shows how the IBM Information on Demand 2006 Conference Personal Planner uses Ajax to work with DB2®.
- To listen to interesting interviews and
discussions for software developers, check out developerWorks podcasts.
- developerWorks technical events and webcasts:
Stay current with developerWorks technical events and webcasts.
獲得產(chǎn)品和技術(shù)
關(guān)于作者
Joe Lennon is a 24-year-old software developer from Cork, Ireland. Joe is author of the forthcoming Apress book Beginning CouchDB, and has contributed several technical articles and tutorials to IBM developerWorks. In his spare time, Joe likes to play football (soccer), tinker with gadgets and work on his Xbox 360 gamer score.
轉(zhuǎn)載地址:http://www.denisdeng.com/?p=736
原文地址:http://www.ibm.com/developerworks/web/library/wa-jsframeworks/index.html
本文鏈接:http://www.95time.cn/tech/web/2010/7554.asp
出處:
責(zé)任編輯:bluehearts
◎進(jìn)入論壇網(wǎng)頁(yè)制作、WEB標(biāo)準(zhǔn)化版塊參加討論,我還想發(fā)表評(píng)論。
|