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