datatable-提示

  1. `默认columns配置问题:  记住是columnDefs不是columnsDefs
  2. `Cannot read property 'sWidth' of undefined:  columns的数量和title的数量对不上
  3. `有时候会弹出缺少字段:  是因为字段里带空格了
  4. `Cannot read property 'data' of null:  接口没传数据
  5. `columns接受很多种格式:  'mobile', 'address[0].city_name',address.city_name 都可以
  6. `多一个空行就报错啊:  语法错误 syntax error
  7. `Cannot read property 'style' of undefined:  columns的数量和title的数量对不上
  8. `TypeError: Cannot read property 'length' of null:  这个一般是返回的数据有问题,比如因该返回data属性,或者 data为空不是[]而是null,dt识别不了所以报此错误

 

posted @ 2016-07-22 16:05  深海懒猫  阅读(472)  评论(0编辑  收藏  举报