我已经使用html2canvas.js来拍摄特定div的屏幕快照,现在我想知道是否可以使用js将canvas元素作为图像复制到剪贴板,然后用户只需单击即可获得其图像要在剪贴板上,只需粘贴即可。
canvas
Codepen Demo
仅适用于https或localhost: