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:""
     }
 },

 

相关文章:

  • 2021-06-06
  • 2021-08-19
  • 2021-12-23
  • 2021-11-20
  • 2021-12-27
  • 2021-09-29
  • 2021-09-10
猜你喜欢
  • 2021-11-17
  • 2022-01-20
  • 2021-07-18
  • 2022-01-13
  • 2021-05-21
相关资源
相似解决方案