求教大神,遇到这个问题怎么解决? Uncaught DOMException: Failed to execute 'toDataURL' on 'HTMLCanvasElement': Tainted canvases may not be exported.
回复
若只如初见1
2018/9/25 21:15:42
遇到:Uncaught DOMException: Failed to execute 'toDataURL' on 'HTMLCanvasElement': Tainted canvases may not be exported. 解决方案:本地起一个静态服务就好了,比如使用:http-server起一个server,就能获取到图片的base64值了