随笔分类 -  出错记录

摘要:出错代码: 修改后: 阅读全文
posted @ 2017-11-04 14:29 cdongyang 阅读(226) 评论(0) 推荐(0)
摘要:测试代码: 运行结果: int和unsigned int的混合表达式,计算时会将int转换为unsigned int 普通情况下会将范围小的隐式转换为范围大的,但对于int和unsigned int,就说不准哪个范围大了,经测试是会将int转换为unsigned int(被坑过。。。) 阅读全文
posted @ 2017-11-03 20:16 cdongyang 阅读(3506) 评论(0) 推荐(0)
摘要:刷新预取 七牛云刷新文件缓存时如果域名开启的url参数,那么刷新只会刷新一样参数的,如 ckeditor config文件为 http://src.debug.guangdamiao.com/ckeditor/config.js 但ckeditor获取时用的是http://src.debug.gua 阅读全文
posted @ 2017-10-08 22:24 cdongyang 阅读(489) 评论(0) 推荐(0)
摘要:Perform the same operation and return the updated entries: 阅读全文
posted @ 2017-09-07 15:40 cdongyang 阅读(1236) 评论(0) 推荐(0)
摘要:上面因为调用alertBox在 alertBox = $(".alert-box");之前,所以alertBox还没定义,是undefined,因而alertBox没有prepend函数 但初学时很容易看到这个报错就混乱,这里只需要将alertBox = $(".alert-box");放到最前面即 阅读全文
posted @ 2017-08-24 13:37 cdongyang 阅读(4229) 评论(0) 推荐(0)
摘要:$('#checkbox').attr('checked'); 返回的是checked或者是undefined解决办法 $('#checkbox').attr('checked'); 返回的是checked或者是undefined,不是原来的true和false了,有关此问题的解决方法如下 在JQ1 阅读全文
posted @ 2017-08-19 19:54 cdongyang 阅读(2670) 评论(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 阅读(455) 评论(0) 推荐(0)
摘要:这里定义变量时加了空格,然后定义变量失败,$debugDir直接就为空,结果把我几个文件夹给删了,早上写的代码没有git add,全没了。。。 所以以后写脚本,运行的时候一定要先将代码保存 阅读全文
posted @ 2017-08-12 15:05 cdongyang 阅读(1836) 评论(0) 推荐(0)
摘要:test=> select * from favoriteguidance test-> ; userid | createtime | objectcreatetime | title | objectid -----------+-------------------------------+-------... 阅读全文
posted @ 2017-08-12 13:06 cdongyang 阅读(742) 评论(0) 推荐(0)
摘要:删除ask时报错 因为将主键设置为 primary key(userID,objectID),因而objectID不能为空,所以删除时报错了 阅读全文
posted @ 2017-07-28 16:05 cdongyang 阅读(623) 评论(0) 推荐(0)
摘要:{"/image/ask/100002769image12017-07-24 15:56:56.243105236 +0800 CST m=+0.328076257.jpg","/image/ask/100002769image22017-07-24 15:56:56.280911621 +0800 阅读全文
posted @ 2017-07-24 16:11 cdongyang 阅读(567) 评论(0) 推荐(0)
摘要:runtime: goroutine stack exceeds 1000000000-byte limitfatal error: stack overflow runtime stack:runtime.throw(0x784d03, 0xe) /usr/local/go/src/runtime 阅读全文
posted @ 2017-07-13 16:47 cdongyang 阅读(2275) 评论(0) 推荐(0)
摘要:ubuntu(linux)下谷歌浏览器跨域问题 今天在使用谷歌浏览器实时调试代码的时候遇到这样的错误: XMLHttpRequest cannot load http://localhost:8080/ No ‘Access-Control-Allow-Origin’ header is prese 阅读全文
posted @ 2017-06-29 00:31 cdongyang 阅读(461) 评论(0) 推荐(0)
摘要:vim处理字符的大小写转换 ~ 将光标下的字母改变大小写3~ 将光标位置开始的3个字母改变其大小写g~~ 改变当前行字母的大小写U 将可视模式下选择的字母全改成大写字母u 将可视模式下选择的字母全改成小写gUU 将当前行的字母改成大写guu 将当前行的字母全改成小写 3gUU 将从光标开始到下面3行 阅读全文
posted @ 2017-06-25 20:47 cdongyang 阅读(271) 评论(0) 推荐(0)