我想将dataUrl传递给Browser Url.But dataUrl是long.How我可以这样做吗?
var chart = $('#con').highcharts();
canvg(document.getElementById('canvas'), chart.getSVG())
var canvas = document.getElementById("canvas");
var img = canvas.toDataURL("image/png");
$("#mylink").attr("href","exmple.com?"+"img="+img);
<a id="mylink" href="">My link</a>