DataTable插件报错:Uncaught TypeError: Cannot read property 'style' of undefined

DataTable插件报错:Uncaught TypeError: Cannot read property 'style' of undefined

 

原因:table 中定义的列和aoColumns数据表的项数量对不上:比如下面:

列1 列2

 

 

"aoColumns": [
    {
        "mDataProp": "uuid",
        "sDefaultContent": "",
        "fnRender": function (obj) {
            var sReturn = "";
            return sReturn;
        }
    },
    {
        "mDataProp": "warehouseName",
        "sDefaultContent": "",
        "sTitle": ""
    },
    {
        "mDataProp": "warehouseNo",
        "sDefaultContent": "",
        "sTitle": ""
    }]

关注本人微信公众号,目前已经发布了完整Docker教程,未来继续努力分享更多资源给您,谢谢!

你可能感兴趣的:(DataTable插件报错:Uncaught TypeError: Cannot read property 'style' of undefined)