一:
const eleLink = document.createElement("a");
eleLink.href = CONFIG.Log_download // 下载的路径
eleLink.download = '操作日志';// 设置下载的name属性,可以为空
eleLink.style.display = "none";
document.body.appendChild(eleLink);
eleLink.click();
document.body.removeChild(eleLink);
二:
var a = document.createElement('a')
a.href = 'xxxxx'
a.download = 'xxxx'
a.click()
a = null