提交 2948f20e 编写于 作者: M maxupeng

添加表单解析

上级 c0940a32
......@@ -45,6 +45,7 @@ http包里面有一个很简单的方式就可以获取,我们在前面web的
}
func login(w http.ResponseWriter, r *http.Request) {
r.ParseForm()
fmt.Println("method:", r.Method) //获取请求的方法
if r.Method == "GET" {
t, _ := template.ParseFiles("login.gtpl")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册