jquery - AJAX .post 异步

标签 jquery asynchronous post get asp.net-ajax

下面的具体作用是什么:

$.ajax({
     type: "POST",
     async: false,

对比

$.ajax({
    type: "POST",
    async: true,

这意味着行为有什么不同?

最佳答案

来自the jQuery site :

By default, all requests are sent asynchronously (i.e. this is set to true by default). If you need synchronous requests, set this option to false. Cross-domain requests and dataType: "jsonp" requests do not support synchronous operation. Note that synchronous requests may temporarily lock the browser, disabling any actions while the request is active.

这就是全部内容了。如果您需要特定问题的帮助,请告诉我。

关于jquery - AJAX .post 异步,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10802156/

相关文章:

jquery - 如何使CSS轮廓匹配动态元素高度

javascript - 如何在添加类时设置顺序延迟?

javascript - 什么是 jQuery thickbox 的最佳替代品

javascript - .click(function()) 未被调用

C# - API 是否应该有 "async"修饰符?

javascript - 将数组内部的数组解析为 PHP

javascript - 如何按顺序执行 Node JS 函数

javascript - 为什么我在 Jasmine 1.3.x 中的 AngularJS 异步测试不起作用?

javascript - qx.io.remote.Request : post parameters in body and url

post - Firefox 插件可刷新点击并自动重新发送数据