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