08 2017 档案
摘要:select * from pg_type where typname = 'managertype'; typname | typnamespace | typowner | typlen | typbyval | typtype | typcategory | typispreferred |
阅读全文
摘要:1.控件事件尽量用$(...).click(function())添加,除非是很多地方都会用到的共用函数,才用<... onclick="function()">放在html里 2.如果是不同tab刷同一个div的内容,比如一个表格 在不断切换tab时表格的内容不断改变,但操作类似,因而函数名可以不
阅读全文
摘要:上面因为调用alertBox在 alertBox = $(".alert-box");之前,所以alertBox还没定义,是undefined,因而alertBox没有prepend函数 但初学时很容易看到这个报错就混乱,这里只需要将alertBox = $(".alert-box");放到最前面即
阅读全文
摘要:Linux手动添加swap分区 用法:dd [操作数] ... 或:dd 选项 Copy a file, converting and formatting according to the operands. bs=BYTES read and write up to BYTES bytes at
阅读全文
摘要:$('#checkbox').attr('checked'); 返回的是checked或者是undefined解决办法 $('#checkbox').attr('checked'); 返回的是checked或者是undefined,不是原来的true和false了,有关此问题的解决方法如下 在JQ1
阅读全文
摘要:golang中io包用法(二) The-Golang-Standard-Library-by-Example os.File 同时实现了 io.Reader 和 io.Writer strings.Reader 实现了 io.Reader bufio.Reader/Writer 分别实现了 io.R
阅读全文
摘要:$.ajax({ type: 'GET', url: "/list/guidance", contentType: "application/json", data: JSON.stringify({ pageSize: 10, ...
阅读全文
摘要:将html/template 的 *template.Template来 PaseFiles tmpl := &template.Template{} tmpl, err := tmpl.ParseFiles("view/guidance.html") 原来是想用text/template 的 参考
阅读全文
摘要:go语言变参,匿名函数的多种用法
阅读全文
摘要:这里定义变量时加了空格,然后定义变量失败,$debugDir直接就为空,结果把我几个文件夹给删了,早上写的代码没有git add,全没了。。。 所以以后写脚本,运行的时候一定要先将代码保存
阅读全文
摘要:test=> select * from favoriteguidance test-> ; userid | createtime | objectcreatetime | title | objectid -----------+-------------------------------+-------...
阅读全文
摘要:下面是 logs.DebugPrint(header.Filename, header.Header, header.Size) 的输出,包含了文件名,文件的http Header,文件大小 default1.jpg map[Content-Disposition:[form-data; name=
阅读全文
摘要:package main import ( "bytes" "crypto/hmac" "crypto/sha1" "encoding/base64" "encoding/json" "fmt" "io" "io/ioutil" "mime/multipart" "net/http" "os" "path/filepath" "time"
阅读全文
摘要:Shell 变量 Linux 的字符串截取很有用。有八种方法。 假设有变量 var=http://www.aaa.com/123.htm 1. # 号截取,删除左边字符,保留右边字符。 其中 var 是变量名,# 号是运算符,*// 表示从左边开始删除第一个 // 号及左边的所有字符 即删除 htt
阅读全文
摘要:--备份用户mew的数据库mew的所有内容 pg_dump -U mew -d mew -h localhost > mew.sql --删除原有数据库 dropdb -U mew -h localhost mew --创建数据库 createdb -U mew -h localhost mew --恢复数据库 psql -U mew -d mew -h localhost < mew.sql...
阅读全文

浙公网安备 33010602011771号