const form = new FormData();
//上传图片
if (this.ruleForm.fileList.length) {
for (let i = 0; i < this.ruleForm.fileList.length; i++) {
if (this.ruleForm.fileList[i
FormData()同时上传文件和对象post请求
最新推荐文章于 2024-06-08 18:30:00 发布
本文介绍如何利用JavaScript的FormData对象实现同时上传文件和对象,通过POST请求发送给后台。
摘要由CSDN通过智能技术生成