使用此方法-出现一些语法错误,必须提交事件
$(function(){ $("#form1").submit(function(event){ event.preventDefault(); $.ajax({ url:'submit.php', type:'GET', data:$(this).serialize(), success:function(result){ $("#response").text(result); } }); }); });


