摘要: 1.使用NaviCat查看mysql版本 命令:select version(); 2.查看mysql字符集 命令:show variables like '%char%'; 阅读全文
posted @ 2016-04-13 09:59 IAMME 阅读(601) 评论(0) 推荐(0) 编辑
摘要: System.getProperty("line.separator") 阅读全文
posted @ 2016-04-12 16:09 IAMME 阅读(3559) 评论(0) 推荐(0) 编辑
摘要: Properties props =new Properties(); props.put("user", "root"); props.put("password", "root"); props.put("useInformationSchema","true"); //表注释 Connection con = null; try { Clas... 阅读全文
posted @ 2016-04-12 10:49 IAMME 阅读(3743) 评论(0) 推荐(0) 编辑
摘要: Properties props = new Properties(); props.put("remarksReporting","true"); Class.forName("oracle.jdbc.driver.OracleDriver"); dbConn = DriverManager.getConnection("jdbc:oracle:thin:tes... 阅读全文
posted @ 2016-04-12 09:12 IAMME 阅读(1040) 评论(0) 推荐(0) 编辑
摘要: $.each(rows, function() { ids.push(this.id); }); 阅读全文
posted @ 2016-04-11 16:53 IAMME 阅读(502) 评论(0) 推荐(0) 编辑
摘要: var nScrollHight = 0; //滚动距离总长(注意不是滚动条的长度) var nScrollTop = 0; //滚动到的当前位置 var nDivHight = $("#main").height(); $("#main").scroll(function(){ var nScrollHight = ... 阅读全文
posted @ 2016-04-11 11:00 IAMME 阅读(584) 评论(0) 推荐(0) 编辑
摘要: dg.edatagrid('selectRow', i).edatagrid('beginEdit', i); var opts = dg.edatagrid("options"); opts.onEdit.call(this, i, rows[i]); 阅读全文
posted @ 2016-04-06 15:00 IAMME 阅读(440) 评论(0) 推荐(0) 编辑
摘要: 思路:首先读取文件内容,找到方法名后,然后追加内容。针对的是小文件处理方式。 阅读全文
posted @ 2016-04-05 11:48 IAMME 阅读(302) 评论(0) 推荐(0) 编辑
摘要: js合成url时,如果参数是中文,传到struts2中会乱码。解决办法如下: 1.js文件中使用encodeURI()方法(必须套两层)。 name= encodeURI(encodeURI(name)); 2.action中URLDecoder解码 name = java.net.URLDecoder.decode(name,"UTF-8"... 阅读全文
posted @ 2015-11-12 14:39 IAMME 阅读(462) 评论(0) 推荐(0) 编辑
摘要: 1:jQuery插件支持的转换方式 $.parseJSON( jsonstr ); jQuery.parseJSON(jsonstr);//可以将json字符串转换成json对象 2:浏览器支持的转换方式(Firefox,chrome,opera,safari,ie9,ie8)等浏览器 JSON.parse(jsonstr); //可以将json字符串转... 阅读全文
posted @ 2015-11-12 14:38 IAMME 阅读(246) 评论(0) 推荐(0) 编辑