js 批量下载文件 通过a标签下载 this.files.forEach((item) => { const domA = document.createElement('a') // 创建a标签 domA.setAttribute('download', item.fileName) // download属性 domA.setAttribute('href', item.filePath) // href链接 domA.click() // 自执行点击事件 })