
HTML5 js css
rufidmx
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
利用golang的template模板包进行web开发
package mainimport ("fmt""html/template""net/http""os")type Person struct {Name stringAge intEmails []stringCompany stringRole string}type OnlineUser struct {User []*原创 2013-03-07 09:01:48 · 26668 阅读 · 1 评论 -
HTML5 websocket实验,后台为golang http包使用
package mainimport ("code.google.com/p/go.net/websocket""fmt""log""net/http""html/template")func Echo(ws *websocket.Conn){var err errorfor{fmt.Println("start")var reply stringif err = we原创 2013-03-07 08:55:54 · 4595 阅读 · 0 评论 -
jquery mobile获取表单input数据的微妙处
input name="password-login" id="password-login" placeholder="password" type="text">如上的HTML,使用val = $("#id").attr("value");是会出错的,说是没找到object,要改成如下: input name="password-login" id="password-login"原创 2013-04-19 18:32:15 · 5322 阅读 · 1 评论 -
golang http content_type
1.如果没有指定content_type的话,http包会查看原创 2014-05-29 12:12:50 · 5327 阅读 · 0 评论 -
http expires cache-control last-modified if-modified-since
关于 Cache-Control: max-age=秒 和 Expires Expires = 时间,HTTP 1.0 版本,缓存的载止时间,允许客户端在这个时间之前不去检查(发请求) max-age = 秒,HTTP 1.1版本,资源在本地缓存多少秒。 如果max-age和同时存在,则被Cache-Control的max-age覆盖。原创 2014-05-29 20:29:11 · 1129 阅读 · 0 评论