Ajax 中的异步是什么意思? [英] What does Asynchronous means in Ajax?

查看:23
本文介绍了Ajax 中的异步是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

异步在 Ajax 中意味着什么?以及 Ajax 如何知道何时在没有服务器轮询的情况下提取数据?

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 知道什么时候从服务器拉取数据,因为你告诉它什么时候做.

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

这篇关于Ajax 中的异步是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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