问题
How do I add edit and delete columns in this table?
Here is my JavaScript code...
$(document).ready( function () {
var table = $('#employeesTable').DataTable({
"sAjaxSource": "/employees",
"sAjaxDataProp": "",
"order": [[ 0, "asc" ]],
"aoColumns": [
{ "mData": "id"},
{ "mData": "name" },
{ "mData": "capital" },
]
})
});
Here is my HTML page...
<table id="employeesTable" class="display">
<thead>
<tr>
<th>Id</th>
<th>Name</th>
<th>Capital</th>
</tr>
</thead>
</table>
来源:https://stackoverflow.com/questions/63864744/data-tables-in-spring-boot-thymleaf-apps