多文件上传
使用模仿formdata 上传多文件
npm install [@macrocc](/user/macrocc)/formdata-polyfill
然后
import FormData from '[@macrocc](/user/macrocc)/formdata-polyfill'
const formData = new FormData((path) => wx.getFileSystemManager().readFileSync(path))
formData.append('test':0)
formData.appendFile('files',path)
const [data, contentType] = formData.generate()
wx.request({
url:'baidu.com',
data,
header:{ contentType }
})