📅  最后修改于: 2022-03-11 15:03:28.343000             🧑  作者: Mango
add "async: false," this line to the $.ajax
$.ajax({
url:url,
async: false,
data:params,
success:function(res){
},
error:function(err){
}
});