var formData = new FormData(); for (var i = 0; i < $("#files")[0].files.length; i++) { formData.append("file", $("#files")[0].files[i]); } $.ajax({ type: "post", url: ‘‘, data: formData, cache: false, processData: false, contentType: false, success: function (res) { }})
原文地址:https://www.cnblogs.com/jiehanshi/p/11544456.html
时间: 2024-10-12 23:29:48