Skip to content

Commit 2948f20

Browse files
committed
添加表单解析
1 parent c0940a3 commit 2948f20

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

4.1.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ http包里面有一个很简单的方式就可以获取,我们在前面web的
4545
}
4646

4747
func login(w http.ResponseWriter, r *http.Request) {
48+
r.ParseForm()
4849
fmt.Println("method:", r.Method) //获取请求的方法
4950
if r.Method == "GET" {
5051
t, _ := template.ParseFiles("login.gtpl")

0 commit comments

Comments
 (0)