将页面(dom元素)转换成PDF,并保存到本地

```typescript import html2canvas from 'html2canvas'; import jsPDF from 'jspdf'; import { message } from 'antd'; /** * 导出PDF * @param {导出后的文件名} title *
posted @ 2023-08-14 16:32  顺·  阅读(390)  评论(0编辑  收藏  举报