Datatable报错Uncaught TypeError: Cannot read property 'style' of undefined
来源:互联网 发布:mac玲珑加速器装不进去 编辑:程序博客网 时间:2024/05/16 02:09
使用Datatables时,报出错误
仔细想想,是因为我在columns里加入了id,并设置visible:false
但是却没在下面的HTML部分多加一个 th
虽然我觉得因为id是隐藏的,不用加上
th id /th
但事实上是,这是错误的,必须数目一样。
"columns": [ { "data": "id", "visible":false }, { "data": "orgName", align:"center" }, { "data": "drillSn" }, { "data": "drillPreplanName" }, { "data": "drillNumOfParticipants" }, { "data": "drillTime" }, { "formatNumber": "preplanTime" } ],
<th>预案演练部门</th> <th>预案演练编号</th> <th>预案名称</th> <th>预案演练人数</th> <th>预案演练时间</th> <th>预案演练内容</th>
解决方案:
当然是在对应位置加上一行th。
阅读全文
0 0
- Datatable报错Uncaught TypeError: Cannot read property 'style' of undefined
- DataTable插件报错:Uncaught TypeError: Cannot read property 'style' of undefined
- dataTables Uncaught TypeError: Cannot read property 'style' of undefined
- 解决dataTable 报错:cannot read property "style" of undefined
- uncaught typeerror cannot read property 'data' of undefined 报错原因
- echarts.min.js:25 Uncaught TypeError: Cannot read property 'features' of undefined 报错解决方法
- 百度地图调用报错Uncaught TypeError:Cannot read property 'fc' of undefined
- $.getJSON报错Uncaught TypeError: Cannot read property 'id' of undefined解决方法
- uploadify的JS组件报错:Uncaught TypeError: Cannot read property 'queueData' of undefined
- jquery.dataTables.min.js:62 Uncaught TypeError: Cannot read property 'style' of undefined原因
- cocos2d-js-----Uncaught TypeError: Cannot read property 'style' of null
- Angularjs报错:TypeError: Cannot read property 'slice' of undefined
- Extjs4---Uncaught TypeError: Cannot read property ‘items’ of undefined
- 【StackFlow】Uncaught TypeError: Cannot read property 'pageCount' of undefined
- Ckeditor: Uncaught TypeError: Cannot read property 'keyCode' of undefined 解决方法
- Uncaught TypeError: Cannot read property 'msie' of undefined问题解决方案
- Uncaught TypeError: Cannot read property 'options' of undefined 错误
- Uncaught TypeError: Cannot read property 'length' of undefined
- Redis学习笔记1--入门篇
- iOS开发系列--视图切换
- 不容易系列之二 HDU
- oracle中REF Cursor用法
- leetcode -- Unique Binary Search Trees
- Datatable报错Uncaught TypeError: Cannot read property 'style' of undefined
- 使用JS写一个计算器练习
- iOS SAX 、DOM 、XML解析区别笔记
- 淘淘商城系列——利用拦截器实现登录功能及订单确认页面展示
- 在csdn的第一篇博客!
- 采用文件流写HDFS大文件
- okhttp入门
- 发工资咯:) HDU
- python 创建pdf文件并支持中文 reportlab