摘要:
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 的 参考 阅读全文