代码: function checkNewEmail(){ var re_email=new RegExp("\\w+@\\w+\\.\\w+\\.?\\w*"); var newEmail=$("#email_new").val(); if(re_email.test(newEmail)){ $.ajax({ type:"post", dataType:"json", url:"existEmail?email=&
原来的代码 function checkNewEmail(){ var re_email=new RegExp("\\w+@\\w+\\.\\w+\\.?\\w*"); var newEmail=$("#email_new").val(); if(re_email.test(newEmail)){ $.ajax({ type:"p