使用到的库:
dom-to-image
FileSaver
示例代码:
domtoimage.toBlob(document.getElementById('pic')).then(function (blob) {
window.saveAs(blob, 'my-node.png');
})
2023-10-30 10:55:40
使用到的库:
dom-to-image
FileSaver
示例代码:
domtoimage.toBlob(document.getElementById('pic')).then(function (blob) {
window.saveAs(blob, 'my-node.png');
})