前端html2canvas结合print-js打印页面,并解决多余空白页问题
一、功能
前端html2canvas打印 HTML页面局部打印
二、代码
结合print-js打印页面
import html2canvas from html2canvas;
import printJS from print-js;/** 打印*/const handleDownload async () > {console.log(inputRef.current.scrollWidth,inputRef.current.scrollWid…
2026/11/30 8:08:18 阅读全文 →