List of mainstream JS librariesTags: prototypedojomootoolsprototypejsjqueryjavascript2009-10-14 22:52 19936 People read Comments (2) favorite reports Classification:JavaScript (+)
At present, JS framework and some open packages and library classes have the following several, Dojo, scriptaculous, Prototype, Yui-ext, Jquery, MochiKit, MooTools, moo.fx
Dojo (JS Library and UI component):
Dojo is now the most powerful J S framework, which defines itself on its own wiki, Dojo is an open source DHTML Toolkit written in JavaScript. Dojo wanted to be a "unification" toolkit, not just browser-level, but ambitious. Dojo includes Ajax, browser, event, widgets and other cross-browser APIs, including the language extension of JS itself, as well as various aspects of the tool library, and a more complete library of UI components, is also widely used in many projects, The feature of his UI component is that it is extended by adding tags to the HTML tag, rather than by writing JS to create the Dojo API that mimics the way the Java class Library is organized. Writing a web OS with Dojo is easy. Dojo is now 4.0, and Dojo is powerful in its interface and special effects packages, allowing developers to quickly build standards-compliant interfaces.
Advantages: The library is quite perfect, the development time is also relatively long, powerful, it is said that the use of Dojo Io.bind () can achieve comet, see its powerful non-general, by IBM and Sun support
Cons: File size is larger, more than 200 KB, the initial download is quite slow, in addition, Dojo's class library use is not so easy, J s syntax enhancement aspect is inferior to prototype.
Prototype (JS OO Library):
is a very elegant JS library, the definition of JS object-oriented extension, DOM operation API, events and so on, to prototype as the core, formed a peripheral various JS extension library, is a very promising JS framework, it is recommended, Feeling is also the most widely used library class (ROR integrated Ajax JS Library), on top of the scriptaculous implementation of some JS component functions and effects.
Advantages: Basic bottom, easy to learn to use, and even some other JS special effects development package of the bottom, the volume is the smallest.
Cons: If you say a 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. Contains 6 JS files, different files corresponding to different JS effect, so say, if the bottom with prototype words, do JS effect with scriptaculous that is again suitable, even the famous Digg are used him, visible not general
Advantages: Based on prototype is the biggest advantage, due to the wide use of prototype, undoubtedly to the user book icing on the cake, and in "Ajax in action" take scriptaculous to tell the JS effect
Disadvantages: Just rise, need 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 enables complex layout layouts that are comparable to backbase and developed using pure JavaScript code. The real editable form edit grid, which supports XML and JSON data types, can be moved directly into the grid. Many components implement support for data sources such as dynamic layouts, editable table controls, dynamically loaded tree controls, dynamic drag effects, and more. The 1.0 beta version began working with jquery to launch the jquery-based Ext 1.0, offering more interesting features.
Advantages: structured, similar to the structure of Java, clear, the bottom of the use of jquery some functions, so that the integration of the use of a choice, the most important point is that the interface is so shocking.
Cons: Too complex, the entire interface is too complex to construct.
Jquery:
jquery is just as good as prototype JS development Library class, especially for CSS and XPath support, so that we write JS more convenient! If you are not a JS master and want to write excellent JS effect, jquery can help you achieve the goal! And the introduction of grammar and high efficiency has always been the goal of jquery,
Advantages: Focus on the introduction and efficiency, JS effect has yui-ext choice, because yui-ext reuse a lot of jquery functions
Disadvantage: It is said to be too tender, history is not long.
MochiKit:
MochiKit calls itself a lightweight JS framework. MochiKit is primarily inspired by the many conveniences offered by Python and the Python standard library, and also alleviates inconsistencies between browser versions. The mochikit.dom is especially handy for handling DOM objects in a more friendly way than the original JavaScript. Most of the mochikit.dom are customized for XHTML documents, and if combined with MochiKit and Ajax, the use of XHTML-wrapped micro-formats is particularly convenient. MochiKit can be used to format the output of strings or numbers directly, which is more practical and convenient. And it has its own JS code interpreter.
Advantages: Mochikit.dom This part is very practical, the introduction is also very prominent
Cons: A lightweight disadvantage
MooTools:
MooTools is a concise, modular, object-oriented JavaScript framework. It can help you write more extensible and compatible JavaScript code faster and more easily. MooTools is similar to Prototypejs, with almost the same syntax. But it offers more features than Prototypejs and is more powerful. For example, add animation effects, drag and drop operations and so on.
Advantages: You can customize the features you need, can be said to be Prototypejs's enhanced version.
Cons: Moderate, specific application specific analysis
MOO.FX:
MOO.FX is a super lightweight JavaScript effects Library (7k) that works with Prototype.js or MooTools frameworks. It is fast, easy to use, cross-browser, conforms to standards, and provides CSS properties that control and modify any HTML element, including color. Its built-in checker prevents users from destroying effects with multiple or crazy clicks. The MOO.FX is modular in its entirety, so you can develop any special effects you need based on it.
Advantages: Small size has great ability
Cons: It's so small, it's pretty good.
List of mainstream JS libraries