Overview of mainstream JS libraries and mainstream js Libraries

Source: Internet
Author: User
Tags mootools

Overview of mainstream JS libraries and mainstream js Libraries
Currently, the JS framework and some development kits and library classes are as follows: Dojo, Scriptaculous, Prototype, yui-ext, Jquery, Mochikit, mootools, moo. fx

Dojo (JS library and UI component ):
Dojo is currently the most powerful j s framework. It defines itself on its own Wiki. dojo is an open-source DHTML toolbox written in JavaScript. Dojo really wants to be a "unified" toolbox. It is not only browser-level, but also ambitious. Dojo includes ajax, browser, event, widget, and other cross-browser APIs, including JS language extensions, tool libraries in various aspects, and a relatively complete UI component library, it is also widely used in many projects. Its UI component is characterized by adding tags to html tags, rather than generating them by writing JavaScript, the dojo API imitates the Java class library organization. It is very convenient to use dojo to write Web OS. Dojo is now 4.0. The powerful feature of dojo is the encapsulation of interfaces and special effects, which allows developers to quickly build compatible standard interfaces.

Advantages: the Library is quite complete, has been developing for a long time, and has powerful functions. It is said that the I/O. bind () of dojo can be used to implement comet. It is said that its function is powerful and not general, and is supported by IBM and SUN.
Disadvantages: the file size is relatively large, more than 200 KB, and the initial download is quite slow. In addition, the use of the dojo class library is not so easy, and the j s syntax is not as enhanced as prototype.

Prototype (js oo library ):
It is a very elegant JS library that defines JS object-oriented extensions, DOM operation APIs, events, and so on. With prototype as the core, it forms a variety of peripheral JS extension libraries, it is a promising underlying JS framework and is recommended. It is also the most widely used library class in reality (the ajax js library integrated by RoR ), in addition, Scriptaculous implements some JS component functions and effects.

Advantages: the basic underlying layer, easy to learn and use, and even the underlying layer of some other js special effects Development kits, the volume is the smallest.
Disadvantage: If we say the disadvantage, it may be that the function is his weakness.

Scriptaculous (js ui component based on prototype ):
Scriptaculous is a js effect based on the prototype. JS framework. It contains 6 js files and different files correspond to different js effects. Therefore, if prototype is used at the underlying layer, it would be appropriate to use Scriptaculous for js effects, even the famous digg is using him.
Advantages: prototype-based is the biggest advantage. Due to the extensive use of prototype, it is undoubtedly a icing on the cake for the user book. in ajax in action, Scriptaculous is used to describe the js effect.
Disadvantages: the rise has just taken time to hone

Yui-ext (js ui component ):
The Yahoo UI-based extension package yui-ext is a CS-style Web user interface component that can implement complex Layout. The interface effect can be comparable to that of backbase and is developed using pure javascript code. The real editable table Edit Grid supports XML and Json data types and can be directly migrated to the grid. Many components support data sources, such as dynamic layout, editable table controls, Dynamically Loaded Tree controls, and dynamic drag and drop effects. The 1.0 beta version began to work with Jquery to launch jQuery-based Ext 1.0, providing more interesting functions.
Advantage: structured, similar to the java structure, is clear and clear. Some Jquery functions are used at the underlying layer to enable integration and use. The most important thing is that the interface is too shocking.
Disadvantage: It is too complicated, and the entire interface is too complicated.

Jquery:
JQuery is an excellent js Development Library class like prototype, especially its support for css and XPath makes it easier for us to write JavaScript! If you are not a js guru and want to write excellent js results, jQuery can help you achieve your goal! In addition, the introduction syntax and high efficiency have always been the goal of jQuery,

Advantages: Focus on introduction and efficiency. js effects include the yui-ext option, because yui-ext reuse many jQuery functions.
Disadvantage: It is said that it is too tender and has a long history.

Mochikit:
MochiKit claims to be a lightweight js framework. MochiKit is inspired by the many conveniences provided by the Python and Python standard libraries, and also relieves inconsistency between browser versions. Among them, MochiKit. DOM is especially convenient and can process DOM objects in a more friendly way than the original JavaScript. Most of MochiKit. DOM is customized for XHTML documents. If it is combined with MochiKit and Ajax, it is particularly convenient to use the XHTML-encapsulated microformat. Mochikit can directly format the output string or number, which is more practical and convenient. It also has its own js Code interpreter.

Advantage: MochiKit. DOM is very practical and the introduction is also outstanding.
Disadvantages: lightweight disadvantages

Mootools:
MooTools is a simple, modular, and object-oriented JavaScript framework. It helps you write scalable and compatible JavaScript code faster and simpler. Mootools is similar to prototypejs, with almost the same syntax. However, it provides more functions than prototypejs and is more powerful. Such as adding animation effects and drag-and-drop operations.

Advantage: You can customize the functions you need. It can be said that it is an enhanced version of prototypejs.
Disadvantages: not small, Specific Application Analysis
Moo. fx:
Moo. fx is a super lightweight javascript special effect Library (7 k) that can be used with prototype. js or mootools frameworks. It is fast, easy to use, cross-browser, compliant with standards, and provides control and modification of CSS attributes of any HTML element, including colors. Its built-in checker prevents users from damaging the effect through multiple or crazy clicks. Moo. fx adopts a modular design, so you can develop any special effects you need based on it.

Advantage: small block headers have high capacity
Disadvantage: It's good to be so small.

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.