HTML代码转canvas-图标

用法:
1.装包: npm i html2canvas

2.导包: import html2canvas from 'html2canvas'

3.用包:





关于html2canvas相关链接
npm-html2canvas:https://www.npmjs.com/package/html2canvas

简书 -html2canva2s:https://www.jianshu.com/p/abd9e9c5ba20

canvasAPI - toDataURL:https://developer.mozilla.org/zh-CN/docs/Web/API/HTMLCanvasElement/toDataURL

你可能感兴趣的:(javascript前端npm)