Introduction and Comparison of popular JavaScript Libraries

Source: Internet
Author: User
Tags vector graphics library mootools

To simplify JavaScript development, some JavaScript libraries were born. The JavaScript library encapsulates many predefined objects and functions, which can help users easily create rich client pages with Web2.0 features of difficult interaction and be compatible with various browsers. The following describes and compares popular JavaScript libraries.

Prototype

Prototype is one of the earliest JavaScript libraries, and has made a lot of extensions to the built-in JavaScript objects (such as String objects and Array objects. There are still many projects using Prototype. Prototype can be seen as a lot of good, and has made a lot of extensions to the built-in JavaScript objects (such as String objects and Array objects. There are still many projects using Prototype. Prototype can be seen as a JavaScript library formed by combining many good and useful JavaScript methods. Users can extract some of the Code into their own code whenever necessary. script. However, because Prototype was developed earlier, the entire object-oriented programming ideology was not well grasped, leading to loose structure. However, Prototype is also being improved.

Dojo

The strength of Dojo is that it provides functions not provided by many other JavaScript libraries. For example, API for offline storage, component for generating icons, vector graphics library based on SVG/VML, and Comet support. Dojo is a very suitable JavaScript library for enterprise-level applications and is supported by some large companies such as IBM, SUN, and BEA. However, the disadvantages of Dojo are also obvious: the learning curve is steep and the documents are incomplete. The most serious problem is that the API is unstable. Every upgrade may cause the existing program to fail, however, since the emergence of Dojo version 1.0.0, the situation has improved, and Dojo is still a very promising library.

YUI

YUI is a complete and scalable rich interactive web page program tool set developed by Yahoo. YUI encapsulates a series of rich functions, such as DOM operations and Ajax applications. It also includes a core CSS file. The library documentation is complete and the code is well written.

Ext JS

Ext JS is short for Ext. It was originally an extension of YUI and is mainly used to create front-end user interfaces. Now it has been developed to use a variety of JavaScript frameworks including jQuery as the basic library, ext is used as an extension library of the interface. Ext can be used to develop rich client applications with rich appearances, making B/S applications more dynamic. However, because Ext focuses on the interface and is bloated, You need to weigh the advantages and disadvantages before using it. In addition, it should be noted that Ext is not completely free. If it is used for commercial purposes, you need to pay for it to obtain an authorization license.

MooTools

MooTools is a lightweight, concise, modular, and object-oriented JavaScript framework. The syntax of MooTools is almost the same as that of Prototype, but it provides more powerful functions, better scalability and compatibility. Its Modular idea is very good, and the core code is only 8 KB. Any module can be imported in real time, and the full version size cannot exceed kb. MooTools fully implements the object-oriented programming ideology, and provides concise and intuitive syntax and complete documentation. It is a very good JavaScript library.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.