2013年2月25日
摘要: 1.处理表单的输入新增一个login.html文件<html><head><title></title></head><body><form action="http://127.0.0.1:9090/login?username=astaxie" method="post"> 用户名:<input type="text" name="username"> 密码:<input type="password 阅读全文
posted @ 2013-02-25 11:51 liubiaoren 阅读(372) 评论(0) 推荐(0)
摘要: 1 package main 2 3 import ( 4 "fmt" 5 "log" 6 "net/http" 7 "strings" 8 ) 9 10 //在浏览器输入http://localhost:909011 //可以看到浏览器页面输出了Hello astaxie!12 //可以换一个地址试试:http://localhost:9090/?url_long1=111&url_long2=22213 14 func sayhelloName(w http.ResponseWriter, r *htt 阅读全文
posted @ 2013-02-25 10:54 liubiaoren 阅读(217) 评论(0) 推荐(0)