首页 > 解决方案 > 如果 mime 类型是 angular2+ 中的 application/csv,如何打印 csv 文件?

问题描述

此代码适用于 Pdf、Img 但不适用于 csv

const file = new Blob([data], { type: mimeType });
const fileURL = URL.createObjectURL(file);
window.open(fileURL);

标签: angular

解决方案


推荐阅读