What does “async: false” do in jQuery.ajax()?

后端 未结 7 1622
北海茫月
北海茫月 2020-11-22 01:47

Specifically, how does it differ from the default ( async: true ) ?

In what circumstances would I want to explicit set async to fals

7条回答
  •  感情败类
    2020-11-22 02:47

    Async:False will hold the execution of rest code. Once you get response of ajax, only then, rest of the code will execute.

提交回复
热议问题