Home  >  Article  >  Web Front-end  >  What is the difference between javascript and ajax

What is the difference between javascript and ajax

青灯夜游
青灯夜游Original
2021-06-23 14:54:513619browse

Difference: JavaScript is a scripting language executed on the browser side, Ajax is a development technology for creating interactive web applications; JavaScript is used to add a variety of dynamic functions to web pages; and Ajax Provides an asynchronous update mechanism to achieve partial page updates.

What is the difference between javascript and ajax

The operating environment of this tutorial: windows7 system, javascript version 1.8.5, Dell G3 computer.

The difference between javascript and ajax

Javascript is a scripting language that is executed on the browser side, and Ajax is a way to create interactive web pages Application development technology uses a series of related technologies, including JavaScript.

JavaScript is a high-level scripting language that belongs to the Internet. It has been widely used in Web application development. It is often used to add various dynamic functions to web pages and provide users with smoother and more beautiful browsing effects.

Ajax provides an asynchronous update mechanism, which uses data exchange between the client and the server instead of the entire page document to achieve partial page updates.

JavaScript

The abbreviation of javaScript is JS, a scripting language widely used in client-side Web development. It is often used to add dynamic functions to HTML web pages (the programs written by it can be embedded into HTML or XML pages and interpreted and executed directly in the browser).

Components:

Core (ECMAScript), Document Object Model (DOM), Browser Object Model, Referred to as BOM)

                                                                                                             Nowadays, it is more and more widely used in Internet web page production.

The emergence of Javascript enables a real-time, dynamic, and interactive relationship between web pages and users, making web pages contain more active elements and more exciting content.

Javascript is short and concise, and is executed on the client machine, which greatly improves the browsing speed and interactive capabilities of web pages. At the same time, it is a simple programming language specifically tailored for making Web pages.

Ajax

AJAX is "Asynchronous JavaScript and XML" (asynchronous JavaScript and XML). AJAX is not an abbreviation, but a noun created by Jesse James Gaiiett. It refers to a way to create interactive Web development technology for web applications.

Composition:

Representation based on XHTML and CSS standards;

Use Document Object Model Perform dynamic display and interaction;
  • Use XML and XSLT for data interaction and operation;
  • Use XML HttpRequest for asynchronous communication with the server;
  • Bind everything using JavaScript.
  • Description:
  • Ajax combines Java technology, XML and JavaScript and other programming technologies, allowing developers to build Web based on Java technology Apply and break management using page reloads.
Ajax technology uses asynchronous HTTP requests to transfer data between the Browser and the Web Server, so that the Browser only updates part of the web page content without reloading the entire web page.

Ajax is a Web application development method that uses client-side scripts to exchange data with the Web server. In this way, the Web page can be dynamically updated without interrupting the interaction process and re-editing it. Using Ajax, users can create direct, highly available, richer, and more dynamic Web user interfaces that are close to local desktop applications

[Related recommendations:

javascript learning tutorial

]

The above is the detailed content of What is the difference between javascript and ajax. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn