Failedtoexecute'toDataURL'on'HTMLCanvasElement':TaintedcanvasesmaynotbeexportedletoCanvas2=this.viewer.canvas.children[0];this.mycanvas=document.createElement("canvas");this.mycanvas.width=oCanvas2.width;this.mycanvas.height=oCanvas2.height;letdestCtx=oCanvas2.getContext('2d');letimage=newImage();image.crossOrigin="anonymous";image.src=oCanvas2.toDataURL("image/png");destCtx.drawImage(image,0,0);請問這種應(yīng)該怎么修改?
有沒有人遇到過這個問題哈!本地canvas繪圖后想轉(zhuǎn)成圖片,提示錯誤?感激不盡
哆啦的時光機(jī)
2019-08-05 23:17:15