a标签下载
2019-09-26 本文已影响0人
Coldhands
let link = document.createElement("a");
link.style.display = "none";
link.href = url;
link.setAttribute("download", "下载名称");
document.body.appendChild(link);
link.click();
let link = document.createElement("a");
link.style.display = "none";
link.href = url;
link.setAttribute("download", "下载名称");
document.body.appendChild(link);
link.click();