1.安装两个依赖 (1)安装html2Canvas依赖 npm install html2canvas (2)安装jspdf依赖 npm install jspdf 2.封装转换功能 3.调用功能 4.效果呈现