在把canvas畫出來(lái)的圖轉(zhuǎn)成圖片是報(bào)下面的錯(cuò):Uncaught DOMException: Failed to execute 'toDataURL' on 'HTMLCanvasElement': Tainted canvases may not be exported.應(yīng)該是跨域的問(wèn)題吧;加上:image.setAttribute('crossOrigin', 'anonymous');也沒(méi)用,要怎么解決的好嘞?
canvas圖片跨域怎么解決
月關(guān)寶盒
2019-02-09 06:58:12