📜  从控制台保存画布 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:39.338000             🧑  作者: Mango

代码示例1
var canvas = document.getElementById("alpha");
var dataURL = canvas.toDataURL("image/png");
var newTab = window.open('about:blank','image from canvas');
newTab.document.write("from canvas");