什么异步方式在阿贾克斯? [英] What does Asynchronous means in Ajax?

查看:107
本文介绍了什么异步方式在阿贾克斯?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是异步意味着阿贾克斯?还如何阿贾克斯知道什么时候拉数据,而无需服务器轮询?

What does Asynchronous means in Ajax? and also how does Ajax know when to pull data without server polling?

推荐答案

异步意味着脚本将发送一个请求到服务器,并继续它的执行,而无需等待答复。一旦回复接收到一个浏览器事件被触发,这反过来又允许脚本执行相关动作。

Asynchronous means that the script will send a request to the server, and continue it's execution without waiting for the reply. As soon as reply is received a browser event is fired, which in turn allows the script to execute associated actions.

阿贾克斯知道什么时候从服务器上获取数据,因为你告诉它什么时候做。

Ajax knows when to pull data from server, because you tell it when to do it.

这篇关于什么异步方式在阿贾克斯?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆