<script> $("#btn").click(function(){ //绑定的click事件 $("#table2excel").table2excel({ //table标签的class exclude: ".noExl", name: "Excel Document Name", filename: "wuliu_amount.xls", exclude_img: true, exclude_links: true, exclude_inputs: true }); }); </script>
参考http://blog.csdn.net/wwp231/article/details/51675023
https://github.com/rainabba/jquery-table2excel