import html2canvas from 'html2canvas'
import jsPDF from 'jspdf'
html2canvas(
document.getElementById('content_pdf') as any,
{
allowTaint: true,
useCORS:
html2canvas和jspdf 实现将页面选定元素保存为pdf
最新推荐文章于 2023-12-10 22:22:48 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)