$.ajaxSettings.async = false;//同步还是异步 $.getJSON(URL,function(data){ //成功后执行}) 转载于:https://www.cnblogs.com/lbonet/p/7128021.html