function printDiv2(div) html2canvas((div), { var img= canvas.toDataURL(); }}
但对你来说,作为一部分,是一种艰难的.我发现了有趣的主题,因为我是JS (和对象)编码方面的新手,我有点困惑.我想我必须使用FileSaver.js并创
我使用的是角4,我使用的是一个api,它返回具有内容类型的图像: img/pngreturn this.http.get('URL', this.options)// can be also : res.arrayBuffer() // res.blob()我尝试了不同的方法来转换和显示它:
以blob的形式