Home  >  Article  >  Web Front-end  >  Introduction and comparison of currently popular JavaScript libraries_jquery

Introduction and comparison of currently popular JavaScript libraries_jquery

WBOY
WBOYOriginal
2016-05-16 17:21:171265browse

In order to simplify the development of JavaScript, some JavaScript libraries were born. The JavaScript library encapsulates many predefined objects and usage functions, which can help users easily create rich client pages with highly interactive Web 2.0 features, and is compatible with major browsers. The following is an introduction and comparison of currently popular JavaScript libraries.

Prototype

Prototype is one of the earliest JavaScript libraries and has made a lot of extensions to JavaScript's built-in objects (such as String objects, Array objects, etc.). There are still many projects using Prototype. Prototype can be seen as a large number of extensions to JavaScript's built-in objects (such as String objects, Array objects, etc.). 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 several pieces of code and put them into their own scripts at any time when needed. However, because Prototype was formed earlier, it did not fully grasp the object-oriented programming ideas as a whole, resulting in its loose structure. But now Prototype is slowly improving.

Dojo

The power of Dojo is that Dojo provides many functions that other JavaScript libraries do not provide. For example, offline storage API, icon generation components, SVG/VML-based vector graphics library and Comet support, etc. Dojo is a JavaScript library that is very suitable for enterprise-level applications and is supported by major companies such as IBM, SUN and BEA. However, the shortcomings of Dojo are also very obvious: steep learning curve, incomplete documentation, and the most serious thing is that the API is unstable. Every upgrade may cause existing programs to fail. However, since the 1.0.0 version of Dojo appeared, the situation has All things considered, Dojo is still a library with great potential for development.

YUI

YUI is a complete and scalable set of rich interactive web application tools developed by Yahoo. YUI encapsulates a series of rich functions, such as DOM operations and Ajax applications, and also includes a core CSS file. The library itself is extremely well documented and the code is written in a very standardized manner.

Ext JS

Ext JS is referred to as Ext. It was originally an extension of YUI and was mainly used to create front-end user interfaces. Now it has developed to include jQuery Various JavaScript frameworks, including Ext, are used as basic libraries, and Ext is used as an extension library of the interface. Ext can be used to develop rich client applications with gorgeous appearance, making B/S applications more dynamic. However, since Ext focuses on the interface and is relatively bloated, please weigh the pros and cons 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 a license.

MooTools

MooTools is a set of lightweight, concise, modular and object-oriented JavaScript framework. The syntax of MooTools is almost the same as Prototype, but it provides more powerful functions, better scalability and compatibility. Its modular thinking is very excellent, and the core code is only 8KB. No matter which module is used, it can be imported instantly, and even the full version does not exceed 160KB in size. MooTools completely implements object-oriented programming ideas, has concise and intuitive syntax, and complete documentation. It is a very good JavaScript library.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn