// PDF文件导出
export function downloadPdf(data, name) {
const url = window.URL.createObjectURL(new Blob([data]));
const link = document.createElement("a");
link.style.display = "none";
link.href = url;
const time = dateTimeFormatter(new Date(), "yyyy-MM-dd");
link.setAttribute("download", name + time + ".pdf");
document.body.appendChild(link);
link.click();
}
04-12
3521
11-10
172
03-01
2615
07-27
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交