0

我想将 dataUrl 传递给 Browser Url。但是 dataUrl 太长了。我该怎么做?

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>
4

0 回答 0