JQuery and AJAX are both Javascript frameworks with different functions. The following describes the relationship between jquery and ajax, if you are not familiar with JQuery and AJAX, they all have different functions. If you compare Javascript to your father, JQuery and AJAX are the sons of Javascript. It is extremely convenient and convenient to implement complex functions in Javascript. Next we will summarize their respective functions, features, and application scenarios.
JQuery is a lightweight js library that is compatible with CSS3 and various browsers (IE 6.0 +, FF1.5 +, Safari 2.0 +, and Opera 9.0 + ). JQuery allows you to easily process HTML documents, events, and animation effects, and provides AJAX interaction for websites. JQuery also has many mature plug-ins to choose from. JQuery can ensure that the user's html page is separated from the code and html content. That is to say, you don't need to insert a bunch of JavaScript code in the html to call the command. You just need to define the id.
JQuery's purpose is to write less, do more, that is, "eat LESS, do more ". This allows our programmers to write less code and do more.
When Will JQuery be used? Similar to the above, it is mainly used as follows:
1. Selector
You can use the $ symbol to quickly and accurately locate the specified element. Selectors include: Basic selector, level selector, filter selector, and form selector.
2. DOM operations
Use the $ symbol to locate the DOM element and perform operations on the attribute; add and delete nodes; operate on the style; set to get HTML text and values; traverse sub-elements or peer elements; add events
3. Form Verification
4. animation effect
5. ajax
JQuery is summarized above, and AJAX is further summarized below.
AJAX is "AsynchronousJavaScript and XML" (Asynchronous JavaScript and XML ). The so-called Asynchronization means that after an event is triggered, the browser can still do other things, and controls irrelevant to the control in which the event occurs are not affected. AJAX is a technology used to create better, faster, and more interactive Web applications.
If you only want to use it. net, you may not be able to understand the Javascript and XML in AJAX. These controls are encapsulation of them. Microsoft makes it much easier for us, however, this is a "silly" method. To deeply understand the use of Javascript and XML, you also need to know how the client accepts Webservice (. asmx) and WCF (. svc) and general processing programs (. ashx) File Usage
When is AJAX used and when is AJAX more suitable? It is usually used when the page changes. As follows:
1. form-based interaction
2. Deep tree navigation
3. Real-time user-to-user communication
4. Voting, selection or rating
5. Filtering and complex data operations
6. Prompt/Automatic completion during normal input
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