У меня есть таблица данных, как показано ниже:
<table id="example2" class="table table-bordered table-striped table-fixed">
<thead>
<th>Key Account</th>
<th>Key Account Code</th>
<th>Potential Value</th>
<th>Sales Value</th>
<th>Penetration %</th>
<th>Potential (H/M/L)</th>
<th>Penetration (H/M/L)</th>
</thead>
<?php echo "Some data from database here";?>
</table>
, и у меня есть кнопка с именем
<button id="click" >Export Image </button>
Как загрузить вышеуказанную таблицу данных в виде изображения после нажатия кнопки?