$.ajax({ url: "", type: "post", async: false,// 默认为true:异步; false:同步 data: {}, dataType: "json", error: function() {}, success: function(data) {} });