特牛网址导航

AJAX同步和异步_xhr.open('get', 同步_名师点津的博客-CSDN博客

网友收藏
文章浏览阅读1.4k次。// 设置同步或异步 xhr.open("GET","https://jsonplaceholder.typicode.com/users",true); // xhr.open("GET","https://jsonplaceholder.typicode.com/users",false); // 如果设置了同步加载,程序会卡在 send 部分 xhr.onreadystatechange = function () { // 通过判断 xhr 的 ready..._xhr.open('get', 同步