第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

DataTables 警告:表 id=示例 - Ajax 錯誤

DataTables 警告:表 id=示例 - Ajax 錯誤

素胚勾勒不出你 2023-05-17 16:11:29
我正在使用 jquery Datatables 并且收到此錯誤:DataTables 警告:table id=example - Ajax error。這是 MVC 應用程序。數據來自 MSQL 數據庫。在 chrome 的控制臺上沒有錯誤。也許這是一個語法問題?這是我的 .jsp 文件:    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %><%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %><%@ page contentType="text/html;charset=UTF-8" language="java" %><html><head>    <title></title>    <script>        function confirmDelete(id) {            if (confirm("Are you sure to delete this cost?")) {                window.location.href = "/cost/delete/" + id;            }        }    </script>    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>    <link rel="stylesheet" href="https://cdn.datatables.net/1.10.12/css/jquery.dataTables.min.css">    <script src="https://cdn.datatables.net/1.10.12/js/jquery.dataTables.min.js"></script>    <script src="../../resources/js/datatable.js"></script></head><body><table id="example" class="display" style="width:80%">    <thead>    <tr>        <th>ID</th>        <th>Date</th>        <th>MPK</th>        <th>Account</th>        <th>Client</th>        <th>Amount</th>        <th>Description</th>        <th>Payment</th>        <th>Invoice Number</th>        <th>Department</th>        <th>Delete</th>        <th>Edit</th>
查看完整描述

1 回答

?
慕村9548890

TA貢獻1884條經驗 獲得超4個贊

請改用以下初始化代碼:


$(document).ready(function () {

   $('#example').DataTable({

      pageLength: 5

   });

});


查看完整回答
反對 回復 2023-05-17
  • 1 回答
  • 0 關注
  • 301 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號