EasyUI(五)_布局类组件(1:datagrid)

遇到问题

后台已经查询到数据

但前端页面未显示

 

起初定义结构体

type udata struct {
    id       int
    area     string
    city     string
    code     int
    postcode int
    email    string
    date     time.Time
    mark     int

}

开始以为gin会帮忙解决结构体字段大小写问题,现在发现想多了,将结构体改写为

得到结果

 

空值问题:https://blog.csdn.net/qq_15437667/article/details/78780945

 

posted @ 2018-08-16 12:12  RESTPAIN  阅读(182)  评论(0编辑  收藏  举报