Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在一页中有很多图表,我想用一个按钮“全部导出”来导出它们,我不知道怎么做,我只知道如何分别为每个图表做这件事。提前感谢
做一个循环
伪代码:
$('#export').click(function() { i = 0; while( charts are avaible ) { Highcharts.exportChart([ CHART i ]); }); i++; } }