Re: [閒聊] 每日LeetCode
<style>
#example{
display:none
}
</style>
<link rel="stylesheet"
href="https://cdn.datatables.net/buttons/1.1.0/css/buttons.dataTables.min.css"
type="text/css" />
<link rel="stylesheet"
href="https://cdn.datatables.net/1.10.10/css/jquery.dataTables.min.css"
type="text/css" />
<link rel="stylesheet"
href="https://cdn.datatables.net/select/1.1.0/css/select.dataTables.min.css"
type="text/css" />
<script src="" rel="nofollow">http://code.jquery.com/jquery-1.11.0.min.js"></script>
<script type="text/javascript"
src="" rel="nofollow">https://datatables.net/release-datatables/media/js/jquery.js"></script>
<script type="text/javascript"
src="" rel="nofollow">https://datatables.net/release-datatables/media/js/jquery.dataTables.js"></script>
<script type="text/javascript"
scr="" rel="nofollow">https://datatables.net/release-datatables/extensions/TableTools/js/dataTables.tableTools.js"></script>
<script
src="" rel="nofollow">https://cdn.datatables.net/buttons/1.1.0/js/dataTables.buttons.min.js"></script>
<script
src="" rel="nofollow">https://cdnjs.cloudflare.com/ajax/libs/jszip/2.5.0/jszip.min.js"></script>
<script
src="" rel="nofollow">https://cdn.rawgit.com/bpampuch/pdfmake/0.1.18/build/pdfmake.min.js"></script>
<script
src="" rel="nofollow">https://cdn.rawgit.com/bpampuch/pdfmake/0.1.18/build/vfs_fonts.js"></script>
<script
src="" rel="nofollow">https://cdn.datatables.net/buttons/1.1.0/js/buttons.html5.min.js"></script>
<script
src="https://jquery-datatables-column-filter.googlecode.com/svn/trunk/media/js/jquery.dataTables.columnFilter.js"
type="text/javascript"></script>
<table id="example" class="display" cellspacing="0" width="100%">
<thead>
<tr>
<th>Name</th>
<th>Position</th>
<th>Office</th>
<th>Age</th>
<th>Start date</th>
<th>Salary</th>
</tr>
</thead>
<tbody>
<tr>
<th>Name1</th>
<th>Posit1ion</th>
<th>Offic1e</th>
<th>Age1</th>
<th>Sta1rt date</th>
<th>Sal1ary</th>
</tr>
</tbody>
</table>
<script>
$(document).ready(function() {
var oTable = $('#example').DataTable( {
dom: 'Blfrtip',
"paging": false,
"ordering": false,
"info": false,
'searching':false,
buttons: [
{
extend: 'pdf',
footer: false,
exportOptions: {
columns: [1,2]
}
},
{
extend: 'csv',
footer: false
},
{
extend: 'excel',
footer: false
}
]
} );
} );
</script>
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 42.72.147.11 (臺灣)
※ 文章網址: https://www.ptt.cc/bbs/Marginalman/M.1698925901.A.084.html
討論串 (同標題文章)
完整討論串 (本文為第 483 之 719 篇):
閒聊
1
3