2021-04-21转化为表单提交
2022-06-20 本文已影响0人
依然_bc87
export const objToFormData = (obj) => {
const formData = new FormData()
for (var i in obj) {
formData.append(i, obj[i])
}
return formData
}
export const objToFormData = (obj) => {
const formData = new FormData()
for (var i in obj) {
formData.append(i, obj[i])
}
return formData
}