通過html2canvas將遍歷頁面元素,並渲染生成canvas,然後將canvas圖片格式添加到jsPDF實例,生成pdf。 html2canvas + jsPDF. 單頁. 將demo1的例子修改下:
確定! 回上一頁