JavaScript&Platform/datatable
[datatable] table header 를 html tr 없이 정의 하기
비니미니파파
2022. 11. 24. 10:44
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>