vue中将网页以pdf格式下载

1、下载 html2canvas和jspdf  两个插件

yarn add html2canvas jspdf

2、html2canvas 和 jspdf github地址

https://github.com/niklasvh/html2canvas

https://github.com/MrRio/jsPDF

html2canvas官方示例:http://html2canvas.hertzen.com/

你可能感兴趣的:(vue中将网页以pdf格式下载)