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