Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
根据我是否设置为或,$.ajax()调用其函数的时间是否有所不同?successasynctruefalse
$.ajax()
success
async
true
false
被查询的网页将其所有信息无误返回给浏览器后调用success。即 http 200、206 等,如果它收到错误,即 404、500,它会改为调用错误