In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly explains "what is the relationship between JavaScript, jQuery, AJAX and JSON". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "what is the relationship between JavaScript, jQuery, AJAX and JSON"?
JavaScript provides more functions for pages and is the basic language for page interaction. In addition, its language specification and engine are also used in other areas, such as Node.
Human beings use a lot of JavaScript and write a lot of code in order to make their pages more functional. At this time, it is found that different browsers have very different levels of support for JavaScript, and it is troublesome for native JavaScript to implement some seemingly simple functions. So jQuery unifies these compatibility issues and encapsulates a large number of API, which allows you to implement a lot of functions very easily.
JQuery shields the compatibility between browsers, encapsulates a large number of API for common functions, and supports plug-in mechanisms, so that you can write JS efficiently and of good quality.
The interaction on a simple page once again does not meet human needs, such as a data filling form that requires a name that cannot be repeated with the previous one. To verify that the name cannot be repeated, you need to submit the data, and the way to interact with the server-side data is to submit the form by form. At this point, the user needs to fill out all the forms, click "OK" and submit the verification. It would be tragic if the name was occupied at this time.
The key point of the solution to this problem is data interaction. The best solution would be to automatically send the data to the backend after typing the name, and then get the result and prompt it to the user, instead of submitting it. So humans came up with a new data exchange scheme, that is, no refresh asynchronous request, called Ajax. Through Ajax, you can exchange data with the back-end interface through JS without affecting the current page. When the interface returns "occupied", JS can well implement it with a prompt on the page.
Ajax technology provides a new way of data interaction between front and back end, which does not need to refresh the page, does not block the page execution process, and asynchronously requests to obtain and exchange data.
At first, you just send a request asynchronously through Ajax, and the data is a simple user name, so just send it as a string. Later, more and more data needs to be sent by Ajax, such as an entire form. At this time, we need a set of rules to describe more complex data. At first, it is estimated to use some characters to split together, and then people use xml to describe it. We found that parsing is still very troublesome, so we created the data description format JSON based on the data type of JavaScript, which is very simple to describe very complex data. It is also independent of language, so it can be used in multiple languages.
JSON is used to describe the content format of front and back end data interaction. With a set of unified description rules such as JSON, the cost of front and back end parsing data becomes low, and it is very easy to use. JSON belongs to a subset of JavaScript.
This is the relationship and use of the above keywords.
Thank you for your reading, the above is the content of "what is the relationship between JavaScript, jQuery, AJAX and JSON". After the study of this article, I believe you have a deeper understanding of the relationship between JavaScript, jQuery, AJAX and JSON. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.