0
我想申請jQuery的數據表庫,但我得到了一個錯誤:
$(...).DataTable is not a function
請看看,幫我出。我試過很多方法來改變加載的腳本。我也更改了標籤和jQuery版本。
function Succes() {
$("#tbl").DataTable();
}
<div class="col-sm-12">
<table id="tbl">
<thead>
<tr>
<th>Name</th>
<th>Class</th>
</th>
</tr>
</thead>
<tbody id="tblbody">`
</tbody>
</table>
我已經在響應之前包括了主要DataTables庫相同問題 – Lier
首先請編輯問題以包含您的更新代碼。其次,你是否確定你的腳本的路徑是正確的? –
絕對正確 – Lier