import html2canvas from ‘html2canvas’import JsPDF from ‘jspdf’export const printOut = (name, id) => { let shareContent = document.getElementById(id) // 须要截图的包裹的(原生的)DOM 对象 let width = shareContent.clientWidth // 获取dom 宽度 let height = shareContent.clientHeight // 获取dom 高度…