Measure the test taker's understanding about JavaScript, Ajax, and jQuery.
Jquery is a good encapsulation of javascript, and it is very lightweight. It can be called as a framework in a similar way. Next we will compare the implementation of ajax by javascript and jquery, after jquery encapsulates it, it is easy to implement. Besides, using jquery instead of javascript to implement some functions will bring unexpected benefits to browser compatibility.
I. Basic understanding
1. JavaScript
Definition:
JavaScript is abbreviated as JS. It is a scripting language developed by Netscape and widely used in client Web development, it is often used to add dynamic functions to HTML webpages (programs written in HTML or XML can be embedded in HTML or XML pages and interpreted and executed directly in browsers ).
Components:
ECMAScript, Document Object Model (DOM), Browser Object Model (BOM)
Description:
Javascript is a new programming language born to meet the needs of dynamic web page creation. It is now more and more widely used in Internet web page production.
Javascript is a scripting language developed by Netscape, or a descriptive language. Based on HTML, Javascript can be used to develop interactive Web pages.
The emergence of Javascript enables a real-time, dynamic, and interactive relationship between the webpage and the user, so that the webpage contains more active elements and more exciting content.
Javascript is short and concise and executed on the client, which greatly improves the browsing speed and interaction capability of the web page. At the same time, it is a simple programming language tailored specifically for the production of Web pages.
Mainstream javaScript frameworks include: YUI, Dojo, Prototype, jQuery...
2. Ajax
Definition:
AJAX is "Asynchronous JavaScript and XML" (Asynchronous JavaScript and XML). AJAX is not a acronym, but a term created by Jesse James Gaiiett, this is a web development technology used to create interactive web applications.
AJAX is not a technology. It is actually several technologies. Each technology has its own unique characteristics. When combined, it becomes a powerful new technology.
Composition:
Representation Based on XHTML and CSS standards;
Use Document Object Model for Dynamic Display and interaction;
Use XML and XSLT for Data Interaction and operations;
Use XML HttpRequest for asynchronous communication with the server;
Use JavaScript to bind everything.
Description:
Ajax integrates Java, XML, JavaScript, and other programming technologies to allow developers to build Java-based Web applications and break the management of heavy page loads.
Ajax uses non-synchronous HTTP requests to transmit data between the Browser and the Web Server, so that the Browser only updates part of the webpage content and does not reload the entire webpage.
Ajax is a Web application development method that uses client scripts to exchange data with Web servers. In this way, the Web page can be dynamically updated without interrupting the interaction process and cutting it again. With Ajax, users can create direct, highly available, richer, and more dynamic Web user interfaces close to local desktop applications.
3. jQuery
Definition:
JQuery is a fast and concise javaScript library that allows you to easily process HTML documents, events, animation effects, and provide AJAX interaction for websites.
Features:
Lightweight, chain syntax, CSS1-3 selector, cross-browser, simple, easy to expand;
JQuery is a framework independent of the server code and independent of ASP. NET or JAVA;
JQuery is a popular JavaScript framework. It uses CSS-like selectors to conveniently operate HTML elements and has good scalability and many plug-ins.
Description:
For programmers, simplified javascript and ajax programming can free programmers from complicated javascript applications in design and writing, turning their focus to functional requirements rather than implementation details, this improves the project development speed.
For users, the visual effect of the page is improved, the interaction with the page is enhanced, and the webpage materials are more beautiful.
The javaScript framework is actually a series of tools and functions.
2. Relationship between the three elements
Next I will use a map to illustrate the relationship between the three:
Explanation:
JavaScript is a scripting language used for Web Client development. Ajax is a new technology based on the JS language, mainly combining JS, CSS, and XML technologies. It is a Web page development technology used to create interactive Web applications. JQuery is a JS framework. Based on the JS language, it integrates JS libraries developed by Ajax technology, encapsulates JS and Ajax functions, and provides function interfaces, greatly simplifying Ajax and JS operations.
The above content is a small part to share with you a preliminary understanding of JavaScript, Ajax, jQuery, and comparison of the relationship between the three, I hope you will like it.