I have read several Chinese and English Ajax libraries/framework comparisons Article For ease of use, the features are summarized as follows:
First, you must select one from the two categories: Compilation class and non-compilation class.
Echo2/GWT is a Java Code Compile it into JavaScript, which is very convenient at first glance. js can also be used to make a dazzling interface. 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.
Another
In addition, there is a view that Java-> JS conversion is a conversion from a low-level language to a high-level language, which is meaningless. It's a bit like learning assembly, and then finding another tool to convert 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
In GWT, most of the work of GWT is on the client, and it is suitable for large websites as little as possible to deal with the server. echo2 believes in the creed of "loading only when used", so there will be a lot
Server access, 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. If you want to consider both, use jquery.
From: http://www.blogjava.net/alwayscy/archive/2007/01/05/92041.html