bootstrap 操作指南

1.table中显示级联类的属性显示

例如:java代码

public class MrTask {
    private Integer id;
    private User create_user;
}

public class User {
    private Integer id;

    private String name;
}

bootstrap的table中的js:

 {
     field : 'create_user',
     title : '创建人',
     formatter : function (value, row, index){
          return value!=null?value.name:""
     }
 },
原文地址:https://www.cnblogs.com/hy928302776/p/bootstrap.html