Ajax异步同步问题

版权声明:UU小七 :转载请标注哦!^v^ https://blog.csdn.net/qq_36474549/article/details/84639084
$.ajax({
type:'POST',
async:false, // 该Ajax设置为同步操作
dataType:'json',
url:'#',
success:function(data){}
});

关键点:async:false, // 该Ajax设置为同步操作

猜你喜欢

转载自blog.csdn.net/qq_36474549/article/details/84639084