table header 를 html thead tr 사용 하지 않고 정의 하기
<table id="example" class="display" style="width:100%">
<thead>
</thead>
</table>
<script>
$('#example').DataTable( {
columns: [
{"data":"mdate","title":"날짜"},
{"data":"username","title":"이름"},
{"data":"tel","title":"연락처"}
]
} );
</script>
'JavaScript&Platform > datatable' 카테고리의 다른 글
[datatable] jquery datatable custom button 만들기 (0) | 2020.09.17 |
---|---|
[Datatable] Jquery Datatable DOM (0) | 2018.10.08 |