【发布时间】:2019-01-21 22:17:57
【问题描述】:
我该如何解决这个问题,这是我的代码:
<html>
<head>
<script>
$(function() {
$('#pemohon-table').DataTable({
processing: true,
serverSide: true,
ajax: 'http://localhost:8000/pemohon/get_datatable'
});
});
</script>
</head>
<body>
<table id="pemohon-table" class="table">
<thead>
<tr>No</tr>
<tr>Nomor Permohonan</tr>
<tr>Tanggal Permohonan</tr>
<tr>Nama</tr>
<tr>Tanggal Lahir</tr>
<tr>Status</tr>
</thead>
</table>
</body>
我得到了这个错误:
未捕获的类型错误:无法读取未定义的属性“aDataSort”
我不知道到底是什么问题,请帮助我。谢谢。
【问题讨论】:
-
您的服务器端脚本可能已返回错误。检查您的日志
-
你能发布整个代码吗?
标签: ajax laravel datatable datatables