微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

译文:JavaScript框架比较

框架比较

表1对本文中讨论的五个框架提供详细的比较

  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

其他值得注意的框架

为了简洁,本文只讨论五个比较流行的框架,这并不意味着这是最流行的、最好的、功能最丰富的。

其它的一些框架也值得一提、值得一看。

  • Cappuccino
  • Dojo
  • Glow
  • GWT
  • MochiKit
  • Qooxdoo
  • Rialto
  • Rico
  • SproutCore
  • Spry
  • UIZE

回顾

在本文中,你已经了解到JavaScript框架的概念,知道它在网站和网络应用发展中的好处。对这些框架的共同功能一个总体描述,并用实例说明了它的应用。同时你也了解到五个框架的一个或一些用户体验和用户界面。最后,你得到了一份直观的表格,突出显示每个框架具有或不具有的特色。有了这些信息,在为你或你的团队作出明智选择之前,你可以进一步研究这些框架。

资源

  • (developerWorks,November 2005) explains how to
    build Ajax-based Web applications.
    Dojo.
  • Learn about
  • 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.

获得产品和技术

  • Download the Dojo toolkit. Dojo toolkit.
  • Get the Prototype Javascript framework.
  • Get jQuery.
  • The jQuery User Interface provides
    abstractions for low-level interaction and animation,advanced effects and
    high-level,themeable widgets,built on top of the jQuery JavaScript
    Library.
  • Get script.aculo.us.
  • Get MooTools.
  • Download and
    learn about the Yahoo! YUI Library.
  • Get ExtJS.
  • Innovate your
    next open source development project with IBM trial software,
    available for download or on DVD.
  • Download IBM product evaluation versions,
    and get your hands on application development tools and middleware
    products from DB2,Lotus®,Rational®,Tivoli®,and
    WebSphere®.

关于作者

Photo of Joe Lennon

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.

转载地址:http://www.denisdeng.com/?p=736

原文地址:http://www.ibm.com/developerworks/web/library/wa-jsframeworks/index.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐