下载画布图像的飞
问题描述:
我有< div id =qrcode>< / div>
code> jquery.qrcode.js插件用QR码创建一个`元素。
Then jquery.qrcode.js plugin creates over a
` element with the QR Code.
可以这样做吗?
答
可以保存图片使用HTML5 blob。
The saving of the image can be done using HTML5 blobs.
http://www.html5rocks.com/en/tutorials/file/filesystem/#toc-file-writing
您可以获取Blob中的代码完成:
You can get Blob out of the like done in this code:
https://github.com/miohtama/Krusovice/blob/master/src/tools/resizer.js