会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
dy blog
大学喵
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
9
10
···
24
下一页
2017年8月30日
postgresql 查看 enum
摘要: select * from pg_type where typname = 'managertype'; typname | typnamespace | typowner | typlen | typbyval | typtype | typcategory | typispreferred |
阅读全文
posted @ 2017-08-30 12:31 cdongyang
阅读(1411)
评论(0)
推荐(0)
2017年8月24日
javascript 代码架构
摘要: 1.控件事件尽量用$(...).click(function())添加,除非是很多地方都会用到的共用函数,才用<... onclick="function()">放在html里 2.如果是不同tab刷同一个div的内容,比如一个表格 在不断切换tab时表格的内容不断改变,但操作类似,因而函数名可以不
阅读全文
posted @ 2017-08-24 13:47 cdongyang
阅读(160)
评论(0)
推荐(0)
javascript Uncaught TypeError: Cannot read property ... of undefined
摘要: 上面因为调用alertBox在 alertBox = $(".alert-box");之前,所以alertBox还没定义,是undefined,因而alertBox没有prepend函数 但初学时很容易看到这个报错就混乱,这里只需要将alertBox = $(".alert-box");放到最前面即
阅读全文
posted @ 2017-08-24 13:37 cdongyang
阅读(4222)
评论(0)
推荐(0)
2017年8月22日
linux 手动添加swap
摘要: 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
阅读(230)
评论(0)
推荐(0)
2017年8月19日
jquery attr 设置属性 checked disabled 不起作用 改用prop
摘要: $('#checkbox').attr('checked'); 返回的是checked或者是undefined解决办法 $('#checkbox').attr('checked'); 返回的是checked或者是undefined,不是原来的true和false了,有关此问题的解决方法如下 在JQ1
阅读全文
posted @ 2017-08-19 19:54 cdongyang
阅读(2661)
评论(0)
推荐(0)
2017年8月17日
golang中io包用法
摘要: 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
阅读(408)
评论(0)
推荐(0)
2017年8月16日
get 传 json 数据
摘要: $.ajax({ type: 'GET', url: "/list/guidance", contentType: "application/json", data: JSON.stringify({ pageSize: 10, ...
阅读全文
posted @ 2017-08-16 19:29 cdongyang
阅读(2583)
评论(0)
推荐(0)
2017年8月14日
go text/template html/template invalid memory address or nil pointer dereference
摘要: 将html/template 的 *template.Template来 PaseFiles tmpl := &template.Template{} tmpl, err := tmpl.ParseFiles("view/guidance.html") 原来是想用text/template 的 参考
阅读全文
posted @ 2017-08-14 20:18 cdongyang
阅读(452)
评论(0)
推荐(0)
2017年8月12日
(转)go语言变参,匿名函数的多种用法
摘要: go语言变参,匿名函数的多种用法
阅读全文
posted @ 2017-08-12 21:13 cdongyang
阅读(326)
评论(0)
推荐(0)
shell 定义变量 坑
摘要: 这里定义变量时加了空格,然后定义变量失败,$debugDir直接就为空,结果把我几个文件夹给删了,早上写的代码没有git add,全没了。。。 所以以后写脚本,运行的时候一定要先将代码保存
阅读全文
posted @ 2017-08-12 15:05 cdongyang
阅读(1834)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
10
···
24
下一页
公告