Post

formdata 数组类型传接口

1
2
3
4
5
6
7
const formData = new FormData();
formData.append("modelid", this.data.modelid);
for (let i = 0; i < this.fileList.length; i++) {
  formData.append("inputurl", this.fileList[i]);
}

This post is licensed under CC BY 4.0 by the author.