HTML5之Canvas绘图——获取Canvas画布的图片 var can = $$('can'); var cans = can.getContext('2d'); window.location=cans.canvas.toDataURL('image/png');