初次使用DataTables的错误:: Unable to get property 'mData' of undefined or null reference

被刻印的时光 ゝ 提交于 2020-02-04 11:07:45

这是HTML的Table格式书写不规范造成的,下面的红色部分加上就可以。

     <table id="example" class="table table-striped table-bordered">
          <thead> 
             <tr>
                 <th>ID</th>
                 <th>NAME</th>
                 <th>TEL</th>
             </tr>
          </thead> 
          <tbody> 

             <tr>
                 <td>155</td>
                 <td>artk</td>
                 <td>135</td>
             </tr>
          </tbody> 
     </table>

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!