'html2canvas'
时间: 2023-08-30 18:09:52 浏览: 83
'html2canvas'是一个基于HTML的div(dom)来对网页进行截图并转存为img的工具。你可以通过安装 npm install --save html2canvas 或 yarn add html2canvas 来在项目中使用ES6模块化引入方式。另外,你也可以通过直接引入js文件 <script src="http://html2canvas.hertzen.com/dist/html2canvas.js"></script> 来使用它。html2canvas有一个搭配的工具image.js,可以用来解决图片放大模糊的问题,建议使用0.5.0-beta4版本的html2canvas.js。你可以在BootCDN上找到html2canvas的相关内容和代码示例。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [html2canvas使用教程](https://blog.csdn.net/weixin_45917647/article/details/126250424)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [canvas绘图以及html2-canvas绘图代码](https://blog.csdn.net/L824627453/article/details/122220162)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文