随笔分类 - go http编程和mysql(十)
http编程和mysql连接
    
摘要:什么是静态文件?如何处理静态文件?静态文件的作用 类型于单独的css js 图片这些被html文件所需要,而又不会有太大隐私的文件。静态文件用来修饰html等模板。如何只暴露所需要的静态文件?请看下面详解: 先看一下例子: 访问结果: 访问了整个磁盘上的文件, 修改一下,接着看: 访问结果: 当前目
        阅读全文
                
摘要:模板语言: 1.if • not ⾮
{{if not .condition}} {{end}} • and 与
{{if and .condition1 .condition2}} {{end}} • or 或
{{if or .condition1 .condition2}} {{end}}
•
        阅读全文
                
摘要:1.http请求包 Accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8 告诉服务器客户端能接收的数据,例如:html,xhtml,xml等等 Accept-Encod
        阅读全文
                
                    
                
浙公网安备 33010602011771号