ajax提交Form表单带文件
$.ajax({ 'type' : 'POST', 'url' : '', 'dateType' : 'json', 'data' : new FormData($('#FormId')[0]), 'async':false, 'contentType': false, 'processData': false, 'success' : function(res){ }, error: function(XMLHttpRequest, textStatus, errorThrown){ FormatError('PageError0420',XMLHttpRequest.responseText,textStatus,errorThrown); alert('服务器异常'); } })

 
                
            
         浙公网安备 33010602011771号
浙公网安备 33010602011771号