Ajax front-end principle []

What is a Ajax

Asynchronous JavaScript and XML is an asynchronous request data, you do not need to refresh the web page development technology, which is composed of the following components

  • CSS and XHTML to represent
  • Use DOM dynamic display and interaction model
  • Using XMLHttpRequest and asynchronous communication server
  • Use javascript to bind and invoke

Second, the principle of Ajax

The principle is simple Ajax XmlHttpRequest object to send to the server through the asynchronous request, obtain data from the server and operate as javascript page DOM is updated. This is the most crucial step is to obtain the requested data from the server.
Ajax XMLHttpRequest is the core mechanism, it is first introduced in IE5, it is an asynchronous request technical support. Simply put, that is, javascript timely request and handle the response to the server without blocking the user. Achieve without refreshing effect.

Guess you like

Origin blog.csdn.net/cheidou123/article/details/92693667