BootstrapTable报错:Cannot read property ‘classes‘ of undefined

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

解决方案:

rowStyle: function(row, index) {
    //这里有5个取值代表5中颜色['active', 'success', 'info', 'warning', 'danger'];
    var strclass = "success";
    return {
        classes: strclass
    }
}
原文地址:https://www.cnblogs.com/samve/p/13363141.html