慕哥9229398
var formData = new FormData(); formData.append('email',email); formData.append('name',name); formData.append('enquiry', enquiry); $.ajax({ url:'', method:'post', dataType:'json', cache: false, processData: false, contentType: false, data: formData, success:function(data){ //do something } },error:function(){ //do something } })