刷新页面 $("#sxbutton").click(function(){ $.ajax({ type:'post', url:'', contentType:'application/json', success:function(response){ window.location.reload(); }, error:function(xhr){ alert("失败"); } }); });