jquery is a good encapsulation of JavaScript, and it is lightweight, it can be referred to as a framework, the following is to compare the JavaScript and jquery implementation of Ajax to highlight the jquery after its encapsulation, easy to achieve ease of simplicity, and not only that, Using jquery instead of JavaScript to achieve some of the features of browser compatibility can also bring unexpected benefits.
First, basic understanding
1. JavaScript
Defined:
The shorthand for JavaScript is JS, a scripting language developed by Netscape, a scripting language that is widely used in client Web development, and is often used to add dynamic functionality to HTML pages (programs that are written can be embedded in HTML or XML pages, and interprets the execution directly in the browser.
Part:
The core (ECMAScript), Document Object Model (the documents objects models, short DOM), browser object model (Browser object models, short BOM)
Describe:
JavaScript is a new programming language that is adapted to the needs of dynamic web-making, and is now increasingly used in Internet web page production.
JavaScript is a scripting language developed by Netscape (scripting language), or a descriptive language. On the basis of HTML, you can use JavaScript to develop interactive Web pages.
The advent of JavaScript enables a real-time, dynamic, interactive relationship between Web pages and users, which includes more active elements and more exciting content.
JavaScript is short and is executed on the client, which greatly improves the browsing speed and interactive ability of the Web page. It is also a simple programming language tailored for making Web pages.
The mainstream JavaScript framework is: YUI, dojo,prototype,jquery ...
2, Ajax
Defined:
Ajax is "Asynchronous JavaScript and XML" (Asynchronous JavaScript and XML), AJAX is not an acronym, but a noun created by Jesse James Gaiiett, a Web development technology that creates interactive Web applications.
Ajax is not a technology, it is actually several technologies, each of which has its own unique, combined to become a powerful new technology.
Composition
Representation based on XHTML and CSS standards;
Use the document Object model for dynamic display and interaction;
Use XML and XSLT to do data interaction and manipulation;
Asynchronous communication with the server using XML HttpRequest;
Use JavaScript to bind everything.
Describe:
Ajax is a combination of Java technology, XML and JavaScript, and other programming technologies that allow developers to build Web applications based on Java technology, and break the use of page overload management.
Ajax technology uses asynchronous HTTP requests to pass data between browser and the Web server so that browser updates only part of the page content without loading the entire page.
Ajax is a Web application development method that uses client script to exchange data with a Web server. This way, Web pages can be updated dynamically without interrupting the interactive process. With Ajax, users can create a direct, highly available, richer, more dynamic Web user interface that is close to local desktop applications.
3, JQuery
Defined:
jquery is a fast, concise JavaScript library that makes it easier for users to handle HTML documents, events, animations, and easily provide Ajax interaction for the site.
Characteristics:
Lightweight, chain syntax, css1-3 selector, Cross-browser, simple, easy to expand;
jquery is a framework that is independent of server-side code, independent of ASP.net or Java;
jquery is a very popular JavaScript framework, using a CSS-like selector, you can easily manipulate HTML elements, have a good scalability, have a lot of plug-ins.
Describe:
For programmers, simplifying JavaScript and Ajax programming can help programmers get out of the design and writing complex JS applications, shift focus to functional requirements rather than implementation details, and thus increase project development speed.
For users, improve the visual effects of the page, enhance the interaction with the page, experience more gorgeous web page materials.
The JavaScript framework is actually a series of tools and functions.
The relationship between the two and the three
Let me illustrate the relationship between the three by using a guide chart:
Explain:
JavaScript is the scripting language for Web client development, Ajax is based on the JS language, the main combination of JS, CSS, XML three technologies, is used to create interactive Web page application Web development technology. jquery is the framework of JS, based on the JS language, set AJAX technology developed by the JS Library, encapsulating JS and AJAX functions, providing function interface, greatly simplifies the operation of the AJAX,JS.
The above content is small series to share the preliminary understanding of javascript,ajax,jquery, and compare the three relations, I hope you like.