版本回滚
This commit is contained in:
1
4.1.md
1
4.1.md
@@ -45,7 +45,6 @@ http包里面有一个很简单的方式就可以获取,我们在前面web的
|
|||||||
}
|
}
|
||||||
|
|
||||||
func login(w http.ResponseWriter, r *http.Request) {
|
func login(w http.ResponseWriter, r *http.Request) {
|
||||||
r.ParseForm()
|
|
||||||
fmt.Println("method:", r.Method) //获取请求的方法
|
fmt.Println("method:", r.Method) //获取请求的方法
|
||||||
if r.Method == "GET" {
|
if r.Method == "GET" {
|
||||||
t, _ := template.ParseFiles("login.gtpl")
|
t, _ := template.ParseFiles("login.gtpl")
|
||||||
|
|||||||
Reference in New Issue
Block a user