摘要: 模板 this.Layout = "admin/layout.html" this.TplName = "admin/list.html" 在layout.html中必须有一下代码,才能显示list.html {{.Layout.Content}} LayoutSection this.Layout 阅读全文
posted @ 2020-01-10 16:46 A毛毛 阅读(309) 评论(0) 推荐(0) 编辑
摘要: // ShowLogin 登陆显示 func (c *UserController) ShowLogin() { username := c.Ctx.GetCookie("username") if username != "" { c.Data["username"] = username c.D 阅读全文
posted @ 2020-01-10 15:15 A毛毛 阅读(924) 评论(0) 推荐(0) 编辑