HTML tableエクスポートexcelファイル
2569 ワード
文書ディレクトリ 1. jquery-table 2 excel をダウンロード 2. エクスポートイベント の設定
使用
1.jquery-table 2 excelのダウンロード
このページの前にjqeryを導入する必要があります
2.エクスポートイベントの設定
参考記事:https://blog.csdn.net/use_admin/article/details/88076117
使用
jquery-table2excel
プラグインをエクスポート1.jquery-table 2 excelのダウンロード
https://github.com/rainabba/jquery-table2excel
このページの前にjqeryを導入する必要があります
2.エクスポートイベントの設定
$("#btn").click(function(){// click
$("#class_table").table2excel({ //table id
exclude: ".noExl",//table , .noExl class excel
name: "Excel Document Name",
filename: "FileName", // excel
exclude_img: true,// img
exclude_links: true,// link
exclude_inputs: true// input
});
});
参考記事:https://blog.csdn.net/use_admin/article/details/88076117