$.getJSON异步请求和同步请求 $.ajaxSettings.async = false;//同步请求 $.getJSON(url, data, function(data){ }); $.ajaxSettings.async = true;//恢复异步