$upload.on("click",
function () {
$.each(filesObj,
function(index, element) {
var file = filesObj[index];
console.log(file.name);
var data = new FormData();
data.append('file', file);
let time = new Date();
let year = time.getFullYear();
let month = time.getMonth()+1;
let day = time.getDate();
let date = year+month+day+index;
data.append('file',file);
data.append('flag', date);
console.log(data);
$.ajax({
url: '/User/UpdateImage',
type: 'POST',
dataType: 'text',
data: data,
cache: false,
processData: false,
contentType: false,
success:function() {
}
});
});
});
欢迎选择我的课程,让我们一起见证您的进步~~