A preliminary understanding of JavaScript, Ajax, jQuery, and compare the relations between

encapsulation of javascript jquery is good, and very lightweight, can be approximated to be referred to as a frame, following on to achieve comparison of javascript and jquery ajax to protrude jquery after its package, to achieve simple and convenient sex, and not only that, to achieve some of the features for browser compatibility will bring unexpected benefits instead of using jquery javascript.

A basic understanding

1、JavaScript

definition: 

        javaScript is shorthand for JS, it was developed by Netscape as a scripting language, a widely used client-side web development scripting language, commonly used to add dynamic functionality to HTML pages (which is written in the program can be embedded into HTML or XML page, and explained directly in the browser execution). 

component: 

             Core (ECMAScript), Document Object Model (Document Object Model, referred to as DOM), browser object model (Browser Object Model, referred BOM)

description:

            Javascript is required to adapt to a dynamic web page production and the birth of a new programming language, now more widely used for creating web pages on the Internet.

            Javascript was developed by Netscape as a scripting language (scripting language), otherwise known as description language. Based on HTML, Javascript can be developed using an interactive Web page.

            Javascript appears between pages and makes the user to achieve a dynamic, interactive relationship between a real-time nature of the web page to include more active elements and more exciting content.

            Javascript dapper, is executed on the client machine, greatly improving the browsing speed and ability to interact with web pages. At the same time it is designed for making Web pages tailored to a simple programming language.

            Mainstream javaScript framework: YUI, Dojo, Prototype, jQuery ...

2、Ajax

definition:

         That AJAX "Asynchronous JavaScript and XML" (Asynchronous JavaScript and XML), AJAX is not an acronym, but from the noun Jesse James Gaiiett creation, refers to a web development technology to create interactive web applications. 

        AJAX is not a technology, it is actually several technologies, each technology has its own uniqueness, together has become a powerful new technology.

composition:

            Representation based on XHTML and CSS standards;

           Use Document Object Model for dynamic display and interaction;

           Using XML and XSLT for data exchange and operation; 

          Using XML HttpRequest asynchronous communication with the server;

           Use JavaScript binding everything.

description:

            Ajax is a combination of Java technology, XML and JavaScript and other programming techniques, allowing developers to build Web applications based on Java technology, and breaking the page reloads use management.

           Ajax technology uses asynchronous HTTP requests, passing data between Browser and Web Server, Browser update only the parts of the page content without reloading the entire page.

          Ajax is to use client-side scripting with the Web server to exchange data Web application development approach. In this way, Web pages without interrupting the interaction process re-add the CD, you can dynamically update. With Ajax, users can create near-native desktop applications direct, high availability, richer, more dynamic Web user interface.

3、jQuery

definition:

        jQuery is a fast, simple javaScript library, allowing users to more easily deal with HTML documents, events, achieve animation effects, and easily provide AJAX interactivity to the site.

Features:

            Lightweight, chain grammar, CSS1-3 selector, cross-browser, simple, easy to expand;

           jQuery is a server-side code independent frame, independent of the JAVA or ASP.NET;

           jQuery is currently a very popular JavaScript framework, similar to the use of CSS selectors, you can easily manipulate HTML elements with good scalability, with a lot of plug-ins.

description:

            For programmers, ajax and javascript simplify programming, the programmer can design and free from JS writing complex applications out, the focus turned to functional requirements rather than implementation details, so as to speed up development of the project. 

           For users, improve the visual effect of the page, and enhance the interaction with the page, experience a more beautiful web material.

          javaScript framework is actually a set of tools and functions.

Second, the relationship between the three

        Now I use a mapping to illustrate the relationship between the three: 

Explanation:

         javaScript client development for Web scripting language, Ajax is based on the JS language, new technology is mainly a combination of JS, CSS, XML three techniques are web development technique for creating interactive web applications. jQuery framework is JS, JS-based language, set Ajax technology developed JS libraries, packaging JS and Ajax functions, provides an interface function, greatly simplifies Ajax, JS operation.


Guess you like

Origin blog.51cto.com/14158790/2433275