我採用以下插件來導出PNG表中的數據,如何在html2canvas中隱藏特定的dom元素?
<li><a href="#" onClick ="$('#datawtable').tableExport({type:'excel',escape:'false', ignoreColumn:[0, 4]});"> <img src='icons/xls.png' width='24px'> XLS</a></li>
<li><a href="#" onClick ="$('#datawtable').tableExport({type:'doc',escape:'false', ignoreColumn:[0, 4]});"> <img src='icons/word.png' width='24px'> Word</a></li>
<li><a href="#" onClick ="$('#datawtable').tableExport({type:'png',escape:'false'});"> <img src='icons/png.png' width='24px'> PNG</a></li>
<script type="text/javascript" src="js/tableExport.js"></script>
<script type="text/javascript" src="js/jquery.base64.js"></script>
<script type="text/javascript" src="js/html2canvas.js"></script>
而像這樣的輸出, 在這裏,我想隱藏「照片」和「選項」欄我檢查這個https://github.com/niklasvh/html2canvas/issues/126,但沒有得到它所以我該怎麼做。
這是表格格式還是div格式? –
@ BhavinSolanki-表格格式 –