AJAX framework/library Comparison and Selection: ECHO2, GWT, DOJO, PROTOTYPE, JQUERY

Source: Internet
Author: User


Comparison and Selection of AJAX frameworks/Libraries: ECHO2, GWT, DOJO, PROTOTYPE, and JQUERY have read several AJAX Library/framework comparison articles in Chinese and English. For ease of use, the following is a special example:
First, you must select one from the two categories: Compilation class and non-compilation class.
Echo2/GWT is to compile JAVA code into JAVASCRIPT, which is very convenient at first glance and can make a dazzling interface without understanding JS. However, this is only suitable for projects that do not want to know about JS or that want to completely control and customize the interface.
In addition, there is a view that JAVA-> JS conversion is a low-level language conversion to a high-level language, which is meaningless. It is a bit like learning assembly, and then finding another tool to convert the assembly language code into C code. Although I did not fully understand this point of view, I have been using C/C ++. In the past few years, I have gradually discovered that JAVA is indeed an evolution. Maybe someone else is right?
In Echo2 and GWT, most of the work of GWT is on the client. It is suitable for large websites to deal with as few servers as possible. ECHO2 believes in the creed of "loading only when used, therefore, there will be a lot of access to the SERVER, suitable for enterprise applications. In addition, I personally think ECHO2 is a more comprehensive one-stop framework, and the interface is also very dazzling. However, its development tools are charged.
Next, let's talk about non-compilation classes, which include DOJO, PROTOTYPE, and JQEURY. Here we will introduce them one by one:
PROTOTYPE is lightweight and can simplify your code. The most classic is the "circle function ":
Document. getElementById ('elementid') to $ ('elementid ')
It enhances the availability of the JS language and lowers the threshold for learning JavaScript.
The most attractive thing about DOJO is its Event System and a wide range of customizable components. It can add events to various HTML elements using the following statements:
Dojo. event. connect (someNode, "onclick", doStuff );
Because DOJO provides powerful functions, it is divided into many packages and can be used separately.
JQUERY also provides Circle functions, and its plug-in system also provides components like DOJO, but it is not as concise as PROTOTYPE, nor is there so many components for use by DOJO, but it has two advantages, and is not very large, and the documentation is complete, so it is between the two.
Therefore, if you need a very complete tool component, use DOJO. If you want to optimize your JS Code and improve writing skills, use PROTOTYPE.

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.