赞
踩
const link = document.createElement('a') link.setAttribute("download", "xxxxxx") //下载的文件名 link.href =url //文件url 路径必须是完整路径 link.click()