簡體   English   中英

DataTables警告:我使用了codeigniter

[英]DataTables warning: I used codeigniter

此消息是帶有刷新我的頁面的彈出消息:

DataTables警告:表id = table-請求第0行第7列的未知參數'7'。有關此錯誤的更多信息,請參見http://datatables.net/tn/4

請提供更多信息...根據信息第七欄為空

可能是您的控制器只寫了6列,但在數據表中您可能已經指定了7列

  • 檢查您的控制器寫了多少列
  • 檢查在數據表中指定的列數檢查“ aoColumns”數組中的列

官方文檔: http : //legacy.datatables.net/usage/columns

請檢查您提取了多少標簽和tr標簽,如果您提取了4和3 tr或反之,它會給出錯誤,例如

  <table>
                  <tbody>
                     <thead>
                         <tr>
                           <th >Id</th>
                           <th >Date</th>
                           <th >name</th>
                           <th >email</th>
                        </tr>
                     </thead>
                      <tr><td>1</td></tr>
                      <tr>21-07-2017</tr>
                      <tr>test</tr>
                </tbody>
   </table>

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM