上一页 1 2 3 4 5 6 7 8 9 10 ··· 24 下一页
摘要: select * from pg_type where typname = 'managertype'; typname | typnamespace | typowner | typlen | typbyval | typtype | typcategory | typispreferred | 阅读全文
posted @ 2017-08-30 12:31 cdongyang 阅读(1363) 评论(0) 推荐(0) 编辑
摘要: 1.控件事件尽量用$(...).click(function())添加,除非是很多地方都会用到的共用函数,才用<... onclick="function()">放在html里 2.如果是不同tab刷同一个div的内容,比如一个表格 在不断切换tab时表格的内容不断改变,但操作类似,因而函数名可以不 阅读全文
posted @ 2017-08-24 13:47 cdongyang 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 上面因为调用alertBox在 alertBox = $(".alert-box");之前,所以alertBox还没定义,是undefined,因而alertBox没有prepend函数 但初学时很容易看到这个报错就混乱,这里只需要将alertBox = $(".alert-box");放到最前面即 阅读全文
posted @ 2017-08-24 13:37 cdongyang 阅读(4183) 评论(0) 推荐(0) 编辑
摘要: Linux手动添加swap分区 用法:dd [操作数] ... 或:dd 选项 Copy a file, converting and formatting according to the operands. bs=BYTES read and write up to BYTES bytes at 阅读全文
posted @ 2017-08-22 22:02 cdongyang 阅读(216) 评论(0) 推荐(0) 编辑
摘要: $('#checkbox').attr('checked'); 返回的是checked或者是undefined解决办法 $('#checkbox').attr('checked'); 返回的是checked或者是undefined,不是原来的true和false了,有关此问题的解决方法如下 在JQ1 阅读全文
posted @ 2017-08-19 19:54 cdongyang 阅读(2625) 评论(0) 推荐(0) 编辑
摘要: golang中io包用法(二) The-Golang-Standard-Library-by-Example os.File 同时实现了 io.Reader 和 io.Writer strings.Reader 实现了 io.Reader bufio.Reader/Writer 分别实现了 io.R 阅读全文
posted @ 2017-08-17 12:14 cdongyang 阅读(392) 评论(0) 推荐(0) 编辑
摘要: $.ajax({ type: 'GET', url: "/list/guidance", contentType: "application/json", data: JSON.stringify({ pageSize: 10, ... 阅读全文
posted @ 2017-08-16 19:29 cdongyang 阅读(2567) 评论(0) 推荐(0) 编辑
摘要: 将html/template 的 *template.Template来 PaseFiles tmpl := &template.Template{} tmpl, err := tmpl.ParseFiles("view/guidance.html") 原来是想用text/template 的 参考 阅读全文
posted @ 2017-08-14 20:18 cdongyang 阅读(436) 评论(0) 推荐(0) 编辑
摘要: go语言变参,匿名函数的多种用法 阅读全文
posted @ 2017-08-12 21:13 cdongyang 阅读(321) 评论(0) 推荐(0) 编辑
摘要: 这里定义变量时加了空格,然后定义变量失败,$debugDir直接就为空,结果把我几个文件夹给删了,早上写的代码没有git add,全没了。。。 所以以后写脚本,运行的时候一定要先将代码保存 阅读全文
posted @ 2017-08-12 15:05 cdongyang 阅读(1827) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 24 下一页