ie10+ js执行.click()下载文件无效

经过判断浏览器类型,若是为ie,采用另存为的方式达到下载效果。其余浏览器则模拟点击下载。浏览器 function downloadFile(title, data) { const blob = new Blob([data], {type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;'
相关文章
相关标签/搜索