clickDown(url) {
var a = document.createElement('a')
a.setAttribute('href', url)
a.setAttribute("target", "_blank");
a.setAttribute("download", 'name');
document.body.appendChild(a);
a.click();
a.remove();
},
通过a标签下载
最新推荐文章于 2024-05-07 11:56:11 发布