原因:rowStyle方法出现了的话就必须返回一种样式类型。

解决方案:

rowStyle: function(row, index) {
    //这里有5个取值代表5中颜色['active', 'success', 'info', 'warning', 'danger'];
    var strclass = "success";
    return {
        classes: strclass
    }
}
BootstrapTable报错:Cannot read property ‘classes‘ of undefined

相关文章:

  • 2022-12-23
  • 2021-10-11
  • 2022-12-23
  • 2021-10-30
  • 2021-12-24
  • 2021-09-17
  • 2021-04-02
  • 2022-01-21
猜你喜欢
  • 2021-11-30
  • 2021-09-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案