Learn something about the JS framework

Source: Internet
Author: User
Tags comparable vector graphics library xpath mootools ruby on rails

Eight JS framework introduction and comparison, Dojo, scriptaculous, Prototype, Yui-ext, Jquery, MochiKit, MooTools, Moo.fx,componentartui (reprinted) ExtJS and Jquery

1.Turbomail (www.turbomail.org) The next version decided to develop with ExtJS + jquery.
2.JQuery provides a convenient way to manipulate Web page elements, but does not provide basic controls such as Tab,grid,muen, etc., ExtJS is a complete set of control libraries, EXTJS provides these controls.
3.Extjs the way to make a control is to use Div, which is similar to the way I wrote Windows Basic controls. So the Windows interface can be fully realized through JS.
4.Extjs also provides the features that jquery contains
The 5.Extjs library is large in size and jquery is small, because jquery provides only web element manipulation methods and no controls, but if you develop a complete library of controls with ExtJS, the volume is certainly no smaller than ExtJS
The source code for both 6.Extjs and JQuery is well written and well worth a look.

Eight JS frame Introduction and comparison collection


Posted on 2008-05-10 22:53 Colonel Reading (3626) Comment (4) Edit favorite NET pick Category: 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.

Transferred from: http://www.cnblogs.com/zhuawang/archive/2008/05/10/1191701.html

This article from Csdn Blog, reproduced please indicate the source: http://blog.csdn.net/Vanessa219/archive/2009/04/17/4087688.aspx

JavaScript frame collection used by mainstream U.S. websites


Pingdom time: 2008-10-04 from: Translation technology level:
Which JavaScript frameworks are the most common, most frequently used?

To answer this question, we surveyed about 200 major US web sites to see if they used the JavaScript framework, and if so, what kind of framework do they use? Here, we have chosen to detect the site from the Alexa U.S. site ranked top 100 and webware the top 100 Web applications. The JavaScript frameworks we detect include: Prototype, JQuery, MooTools, Yahoo! UI Library, Dojo, ExtJS, and MochiKit.

We soon discovered that Dojo, ExtJS and MochiKit are largely not used by these mainstream websites. So we locked our eyes on the remaining 4 JavaScript frames.

Prototype
Prototype is one of the early JavaScript frameworks, and it is also applied to the Ruby on Rails framework. Of the 200 sites tested, 13 sites use prototype as their development framework, including:

Cnn
The New York times
Digg
Apple
Veoh.com
TypePad
Fox News Channel
Finetune
ILike
Last.fm
Twitter
Hakia
YouSendIt
Jquery
Because of its library file size, speed and rich pattern operation brought by the massive plug-in library, the jquery framework is now attracting wide attention. Of all the sites tested, 11 sites use the jquery framework as their development framework, which includes:

Digg
Bbc
Major League Baseball
Dell
IsoHunt
Break.com
Tinypic
Fixmymovie
EMusic
Kayak
Box.net
MooTools
Similar to many other frameworks, MooTools contains a number of functions and methods to assist in its development and expansion, the most notable of which is the advanced effects component (advanced effects component). Of all the sites tested, 4 sites used MooTools:

Mint
Worth1000
Bebo
Vimeo
Yahoo! UI Library (YUI)
This is a set of Yahoo (Yahoo) self-developed JavaScript framework. Yahoo not only as its own website of the JS open frame, and free of charge to other people free to use. Of all the sites tested, 7 sites used the Yahoo! UI Library:

Yahoo! shopping
Zillow
Bebo
YouSendIt
ImageShack
Linkedin
Walmart.com
Sites that we're not sure about using frames
In the testing site, there are many sites using more than one JavaScript framework, but more than a combination of use. This leads to the user having to be forced to download all of these framework libraries, but the functionality used is only part of the functionality of these frameworks. This situation is undoubtedly avoidable.

This part of the site uses a variety of frameworks, perhaps to consider the best part of each frame, or to temporarily replace the JavaScript framework that was identified at the beginning of the project, without having time to integrate all the code.

These sites that use multiple JS frames are: Digg (prototype and jquery), Bebo (MooTools and Yui), and YouSendIt (prototype and Yui).

Summarize
In this test, prototype seems to be the most popular web site of the JS framework, and jquery followed.
It's interesting to see that there are several websites that use the Yahoo! UI Library Framework as their JS framework, which is a certain gap from our original imagination.

The JS framework checks on these mainstream websites may not be entirely true, as we have only detected the frames used on their homepage. Also, we are not registered to log on to these sites for inspection, all of which may have some loopholes in the data.

How do we do the testing?

First, we list the top 100 and webware Top 100 apps on the Alexa website, and then we use a special gadget for keyword checking to determine the JavaScript framework used by its website.

For example, for prototype, we will search for "prototype.js" and "/prototype" strings to determine whether the site uses prototype or its modified version (unless all similar "prototype" are replaced).

Of course, we will also manually see whether the frameworks used by the tools to check out these sites are in accordance with the actual. For example, we're going to get rid of Web sites that use only Yahoo's CSS frameworks, not JavaScript frames.

Original: Javascript framework usage among top websites

This article from Csdn Blog, reproduced please indicate the source: http://blog.csdn.net/Vanessa219/archive/2009/04/17/4087680.aspx

Popular AJAX Framework Comparison: Jquery,mootools,dojo,ext js2009-07-31 17:40

Ajax is the cornerstone of Web20 , now the online popular several open-source AJAX framework, such as: Jquery,mootools,dojo,ext JS, and so on, then in what circumstances should we use that framework? The following is a set of extracted data:

Ajaxian conducted a survey of AJAX tools at the end of 2007, and some of the findings are shown in the following table (where the number is the percentage of respondents using the tool, see page for details): http://ajaxian.com/archives/2007- Ajax-tools-usage-survey-results

Prototype Jquery Ext Script.aculo.us Mootools YUI Json Dojo Backbase
34.1% 29.3% 22.5% 22.3% 14.3% 13% 12.9% 11.8% 8.3%

Among them, the prototype use rate is the highest, largely because it is the first mature framework, many used in the project, so it has been used

Let's take a look at the basics of choosing an AJAX framework:

your project needs (i.e. what features you need, such as whether you want to make a nice interface, special effects, or other features)

Do you support A-level browser (IE, Firefox, etc.)?

Document quality: Perfect (includes tutorials, APIs, code samples, etc.)

What is the scalability of the framework? Is it easy to write plugins for the framework?

Do you like the style of its API?

Can you mostly unify the style of your JavaScript code?

Frame size (too large frame results in extended user download time)

Does the framework force you to change the way you write HTML (that's what Dojo does)?

Code Execution Speed: How is performance?

is the code modular (MooTools is highly modular)? How reusable is the code?

First, JQuery

Home: http://jquery.com/

Design ideas

Concise idea: Almost all operations start with selecting DOM elements (with powerful selector) and then manipulating them (chaining and other features).

Advantages

Small, after compression code only more than 20 K (no compression code 94k).

Selector and DOM manipulation convenience: jquery Selector vs. MooTools Element.Selectors.js, CSS Selector, XPath Selector (1.2 deleted)

Chaining: Always returns a JQuery object that can be manipulated continuously.

Document integrity, ease of use (each API has a complete example, which is not comparable to other frameworks now), and there are many other documents, books on the web.

A wide range of applications, including Google Code, also uses jquery.

Sites using jquery: Http://docs.jquery.com/Sites_Using_jQuery

Core development team and core personnel: John Resig and so on.

Concise and short grammar, easy to remember.

Scalability: A large number of user-developed plug-ins are available (http://jquery.com/plugins/)

The jquery UI (http://jquery.com/plugins/, based on jquery, but and the core of jquery is independent), continues to evolve.

Friendly and active community: Google Groups:http://docs.jquery.com/discussion

There are many convenient methods for event handling, such as click, rather than a single addevent.

Disadvantages

Because the design idea is the pursuit of efficient and concise, there is no object-oriented extension. Design ideas are different from MooTools.

CSS selector is a little bit slower (but now the speed has increased dramatically)

Mootools

Home: http://mootools.net/

Design ideas

Object-oriented design idea.

Advantages

Modular, the code of each module is very independent, the smallest core only 8k, the biggest advantage is to choose which modules to use, when only the use of the module can be imported, complete less than 180k (no compression), compressed less than 70k.

The grammar is concise and intuitive.

Effects: This is slightly stronger than jquery and is now developing the MooTools UI (which should be a trend in AJAX framework development).

The code is beautifully written, easy to read and modify.

The document is complete (the most recent 1.2beta document is more detailed than before).

Active Community: Official website (http://forum.mootools.net/), and an IRC.

Performance: see: http://mootools.net/slickspeed/

Disadvantages

Modified some classes at the lower level: such as array, string, and so on, which is different from the design idea.

It's not as powerful as jquery on Dom and CSS selector.

Dojo

Home: http://dojotoolkit.org/

Advantages

Behind the Strong support: IBM, Sun, BEA, and so on, this is a very important advantage.

The powerful, full stack framework extends the capabilities of DHTML, such as:

Supports integration with browser Back/forward buttons.

Dojo Offline, a cross-platform, offline storage API.

Chart Component, which makes it easy to generate graphs on the browser side.

Vector Graphics library based on SVG/VML.

Google maps, Yahoo! Maps components to facilitate the development of mashup applications.

Comet support, through the generic Buyeux protocol.

Powerful UI (Dijit).

Object-oriented design, unified namespace, package management mechanism (the system and Custom Builds)

Scalability.

Disadvantages

Complex, the learning curve is steep.

The document is extremely incomplete, which is a big problem.

API is a lot of instability, the changes between the version of the larger, and now is not a mature framework.

Intrusive too much, the page is heavily using Dojo properties, such as <button dojotype= "Dijit.form.Button" id= "Hellobutton", if the future Dojo upgrade or a framework, the burden will be great.

Performance issues, due to the synchronous mechanism of dojo loading, the browser is temporarily locked, resulting in CPU usage of up to 100%. In addition, many widgets are very slow.

Ext JS

Home: http://extjs.com/

Design ideas

Modular, advancing the application of Ria (Rich Internet application).

Advantages

Strong UI, and good performance, this is its biggest advantage.

Fast, whether it is the UI or other modules.

100% object-oriented and modular thinking, consistent syntax, global namespaces.

Documentation is complete, standardized and convenient.

The core development team, Jack Slocum and so on.

The active community, the rapidly increasing number of users.

Modular implementation, strong scalability.

All components (widgets) can be used directly without setting up (of course, the user can choose to reconfigure).

Disadvantages

Slightly more complicated.

is a heavyweight framework (with a lot of UI) and is large in size. If you import ext-all.js, it also has nearly 500k after compression.

Note: Ext commercial use: If only ExtJS is included in its own project, and this project is not sold to users to do two development of the toolbox, or component library, you can comply with the LGPL agreement free to use;

Summarize

Lightweight selection

Lightweight choice: Mainly MooTools and jquery, because of their different design ideas, jquery is the pursuit of simplicity and efficiency, mootools in addition to pursuing these goals, its core is object-oriented, so jquery is suitable for rapid development, MooTools is suitable for slightly larger and complex projects where object-oriented support is required, and jquery is slightly stronger with Ajax support, and with comet support, jquery has the relevant plugin, MooTools not currently, But the core of comet is server support, browser-side interface is very simple, the development of related plugins is very simple.

In the object-oriented JavaScript library, MooTools gradually defeated the prototype (large size, object-oriented design is unreasonable, etc.), Also includes Script.acul.ous (based on prototype, which is actually the UI library on prototype).

A framework for RIA

Consider pure Javascripty Library, currently mainly dojo and ExtJS (and Yui). Dojo is better suited for enterprise applications and product development because offline storage, DataGrid, 2D, 3D graphics, Chart, comet, and other components are important for enterprise applications (of course, these components will have to wait for a while to stabilize). For example, the BEA has used dojo in a product developed based on mashup technology.

ExtJS: Beautiful and "easy to use", and powerful enough. It is preferred when there is a greater need for the UI.

Learn something about the JS framework

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.