📅  最后修改于: 2022-03-11 15:02:36.409000             🧑  作者: Mango
function getFormData(object) {
const formData = new FormData();
Object.keys(object).forEach(key => formData.append(key, object[key]));
return formData;
}