Skip to content

Instantly share code, notes, and snippets.

@justpsvm

justpsvm/formdata.js

Last active Nov 21, 2017
Embed
What would you like to do?
[FormData 异步上传] 异步上传 #jquery
var formData = new FormData(excelForm[0]);
$.ajax({
url: 'upload.jhtml',
type: 'POST',
cache: false,
data: formData,
processData: false,
contentType: false
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment