$.ajax({ cache: true, type: "POST", url:"url", data:$('#formid').serialize(),// 你的formid async: false, error: function(request) { alert("Connection error"); }, success: function(data) { console.log(data); } });