思路:用js创建一个iframe,让后指定src为下载目录。
var ifup = document.getElementById("xman-activity-export-downLoad-file"); if(ifup) { document.body.removeChild(ifup); } var elemIF = document.createElement("iframe"); elemIF.id=‘xman-activity-export-downLoad-file‘; elemIF.src = ret?.data?.value?.exportOSSKey; elemIF.style.display = "none"; document.body.appendChild(elemIF);
原文链接:https://blog.csdn.net/ashou706/article/details/82760477