简体   繁体   English

如何初始化html2canvas?

[英]how do I initialize html2canvas?

我下载了html2canvas javascript插件 ,该插件可让我在客户端(浏览器)上截取网页的屏幕截图,但无法弄清楚应该在页面标题中包含哪些文件才能使用它, 我已经看到了有关如何使用它的示例 ,但是我应该包括哪些文件?

From the various demo pages , it appears you only need the single script( a or b ) included in your header. 各个 演示 页面中 ,您似乎只需要标题中包含的单个脚本( ab )。

This is different from an older version of the script, which needed jQuery, html2canvas.js , and jquery.plugin.html2canvas.js . 这与脚本的旧版本不同,该脚本需要jQuery, html2canvas.jsjquery.plugin.html2canvas.js

I can't comment on the two other scripts included in the /dist directory(the svg ones), given I can't find any examples of their use. 考虑到找不到它们的任何使用示例,我无法评论/ dist目录中包含的其他两个脚本(svg脚本)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM