//url: 下载链接
download(url) {
console.log(url, 333);
let eleLink = document.createElement("a");
eleLink.download = url;
eleLink.style.display = "none";
eleLink.href = url;
document.body.appendChild(eleLink);
eleLink.click();
document.body.removeChild(eleLink);
}
前端页面点击下载文件
最新推荐文章于 2024-03-30 16:10:40 发布
1259

被折叠的 条评论
为什么被折叠?



