1
0
mirror of https://github.com/astaxie/beego.git synced 2024-06-28 15:04:14 +00:00

Update Quickstart.md

纠偏:从上面的例子中,并不能知道 DelSession(name string) 方法。
This commit is contained in:
lqixv 2013-07-26 09:09:09 +08:00
parent 42370b5eb8
commit a39139c610

View File

@ -626,7 +626,7 @@ response可能会有几种情况
1. 模板输出 1. 模板输出
模板输出上面模板介绍里面已经介绍beego会在执行完相应的Controller里面的对应的Method之后输出到模板。 上面模板介绍里面已经介绍beego会在执行完相应的Controller里面的对应的Method之后输出到模板。
2. 跳转 2. 跳转
@ -665,7 +665,7 @@ beego中使用session相当方便只要在main入口函数中设置如下
this.TplNames = "index.tpl" this.TplNames = "index.tpl"
} }
上面的例子中我们知道session有几个方便的方法 session有几个方便的方法
- SetSession(name string, value interface{}) - SetSession(name string, value interface{})
- GetSession(name string) interface{} - GetSession(name string) interface{}