HTML5之Canvas绘图——获取Canvas画布的图片

291 阅读1分钟
var cans = canvas.getContext('2d');
let src = window.location = cans.canvas.toDataURL('image/png');