JQ AJAX POST表单,包括上传文件 var formData = new FormData($('form')[0]); $.ajax({ url:"{$INI[system][wwwprefix]}/manage/product/ajax.php?action=product_add_edit${$_GET['id']?'id='.$_GET['id']:''}", type:"POST", dataType: "json", d
var formData = new FormData($('form')[0]); $.ajax({ url:"{$INI[system][wwwprefix]}/manage/product/ajax.php?action=product_add_edit${$_GET['id']?'&id='.$_GET['id']:''}", type:"POST", dataType: "json", data:formData, success: X.json, cache: false, contentType: false, processData: false });