let a = document.createElement(“a”);
let url = window.URL.createObjectURL(
new Blob([document.getElementById(‘pdfDom’).innerHTML], {
type: ‘’
})
);
a.href = url;
a.download = “file.html”;
a.click();
window.URL.revokeObjectURL(url);
导出html
最新推荐文章于 2023-12-14 10:54:33 发布