标签:target process ipa url ESS The jquer multipart code
//jquery
var formdata = new FormData();
formdata.append("file", e.target.files[0]);
$.ajax({
type: 'post',
dataType: 'json',
url: 'url'
data: formdata,
contentType: false,
processData: false
}).success((data) => {
}).error((data, timeout, err) => {
})
//axios
let formData=new FormData();
formData.append('attachment',file);
let config = {
headers: {
'Content-Type': 'multipart/form-data;charset=UTF-8'
}
};
axios.post(url,formData,config).then(({data})=>{
});
标签:target process ipa url ESS The jquer multipart code
原文地址:https://www.cnblogs.com/yangwang12345/p/11247450.html