📌  相关文章
📜  axios 发送带有数据的文件 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:06.700000             🧑  作者: Mango

代码示例1
const photoFormData = new FormData();
    // dict of all elements
    photoFormData.append("avatar", file);
    photoFormData.append("email", this.state.email);
    photoFormData.append("name", this.state.name);