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

 

posted on 2017-05-08 20:45  世界之大追梦者  阅读(205)  评论(0编辑  收藏  举报

导航