试试这样:
var fd = new FormData();fd.append( "file", $("input[name=file]").files[0]); $.ajax({ type: "POST", url: "/uploadFile", data: fd, contentType: false, processdata: false, cache: false, success: function (result) {if ( result.reseponseInfo == "SUCCESS" ) { } else { } }, error: function (result) { console.log(result.responseText); } });
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)