function exportGrid(tableid,filename) {
var table= document.getElementById(tableid);
$("table tr td:last-child").replaceWith("");
var html = table.outerHTML;
var a = document.createElement('a');
a.id = 'ExcelDL';
a.href = 'data:application/vnd.ms-excel,' + escape(html);
a.download = filename + ".xls";
document.body.appendChild(a);
a.click();
// location.reload();
// document.getElementById('ExcelDL').remove();
}我在jSP上有一个函数,我想导出一个带有分页的表,麻烦的是,这个函数只是导出贪婪的视图
发布于 2018-02-23 22:51:14
https://stackoverflow.com/questions/48950295
复制相似问题