首页 > 其他分享 >anvas保存图片时,谷歌浏览器Chrome报错【解决方案】Not allowed to navigate top frame to data URL

anvas保存图片时,谷歌浏览器Chrome报错【解决方案】Not allowed to navigate top frame to data URL

时间:2022-12-07 14:11:52浏览次数:44  
标签:anvas Chrome navigate 报错 allowed var document

               var base64Data = canvas.toDataURL("image/png");
                         var iframe =
               "<iframe width='100%' height='100%' src='" + base64Data + "'></iframe>"; var x = window.open(); x.document.open(); x.document.write(iframe); x.document.close();

 

标签:anvas,Chrome,navigate,报错,allowed,var,document
From: https://www.cnblogs.com/qiao20/p/16962906.html

相关文章