所需要的js下载地址:https://download.csdn.net/download/qq_38880700/10592847(不方便下载可以私信我我给你发)
使用注意:table一定要写规范,table一定要写规范,table一定要写规范!
表头要用<thead></tr><th></th></tr></thead> 表身要用<tbody><tr><td><td></tr></tbody>不然有时候导出来会异形!
导出方法:
$('.table的class或者#table的id').tableExport({type:'excel'});
就好了