06 2012 档案

摘要:使用dom4j解析XML时,要快速获取某个节点的数据,使用XPath是个不错的方法,dom4j的快速手册里也建议使用这种方式,标题都写的这么阔气:Powerful Navigation with XPath。方法是使用Document的selectNodes(String XPath)方法,代码写法:List l = doc.selectNodes("//COLS/COL1");执行时却抛出以下异常:Exception in thread "main" java.lang.NoClassDefFoundError: org/jaxen/JaxenExce 阅读全文
posted @ 2012-06-19 17:18 lhc、 阅读(9119) 评论(1) 推荐(4)
摘要:SELECT COUNT(*) TABLES, table_schema FROM information_schema.TABLES WHERE table_schema = '数据库' GROUP BY table_schema;from:http://hi.baidu.com/dongyongzheng/blog/item/dd97680efaa103e1ab6457c5.html 阅读全文
posted @ 2012-06-08 11:34 lhc、 阅读(6057) 评论(0) 推荐(0)
摘要:$("input[name='decisionPlot']:checked").val(); 阅读全文
posted @ 2012-06-03 23:50 lhc、 阅读(479) 评论(0) 推荐(0)
摘要:function objConvertStr(o) { if (o == undefined) { return ""; } var r = []; if (typeof o == "string") return "\"" + o.replace(/([\"\\])/g, "\\$1").replace(/(\n)/g, "\\n").replace(/(\r)/g, "\\r").replace(/(\t)/g, "\\t") + 阅读全文
posted @ 2012-06-03 23:43 lhc、 阅读(10908) 评论(0) 推荐(0)