$.ajax({ type: 'POST',url: 'index.PHP',data: { 'ajax' : '1','action' : $('#action').val() },async: true,cache: false,dataType: 'html',beforeSend: function(data) { $('#div').html('正在操作...'); },success: function(data) { $('#div').html(data); },complete : function(data) { alert(data); },error: function(XMLHttpRequest,textStatus,errorThrown) { alert("TECHNICAL ERROR.\n\ntextStatus: '" + textStatus + "'\nerrorThrown: '" + errorThrown + "'\nresponseText:\n" + XMLHttpRequest.responseText); } });