是的,我可以将所有数据发送到服务器,无论如何它都可以正常工作,例如:
$(function() { // on document load$('#email_form').submit(function() { // set onsubmit event to the form var data = $('#email_form').serialize(); // serialize all the data in the form $.ajax({ url: 'testJson.php', // php script to retern json enpred string data: data, // serialized data to send on server dataType:'json', // set recieving type - JSON in case of a question type:'POST', // set sending HTTP Request type async:false, success: function(data) { // callback method for further manipulations for (key in data.email) { alert(data.email[key]); } }, error: function(data) { // if error occured } }); return false;});});



