jquery.ajax方法:
$.ajax({ type:"post", url:"temp.php", beforeSend: function(XMLHttpRequest){ }, dataType:"json", success: function(data, textStatus){ }, complete: function(XMLHttpRequest, textStatus){ //callback(); }, data:"search="+search });