gpt4 book ai didi

jquery - AJAX .post 异步

转载 作者:行者123 更新时间:2023-12-01 00:11:14 25 4
gpt4 key购买 nike

下面的具体作用是什么:

$.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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com