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

var can = $$('can');
var cans = can.getContext('2d');
window.location=cans.canvas.toDataURL('image/png');

 

转载于:https://www.cnblogs.com/picaso/archive/2012/11/27/2791304.html

你可能感兴趣的:(HTML5之Canvas绘图——获取Canvas画布的图片)