摘要: 很想自己写模拟hibernate的封装,本人又是一个新手,能力有限,参考了网上资料,加上自己点修改。方便自己的偷懒@!@--连接View Code public Connection getConn() throws SQLException { MysqlDataSource ds = new MysqlDataSource(); ds.setUrl("jdbc:mysql://localhost:3306/test?user=root&password=1"); return (Connection) ds.getConnection(); ... 阅读全文
posted @ 2013-05-01 18:38 肥仔-酷(code) 阅读(156) 评论(0) 推荐(0)
摘要: 刚才在网上看一篇文章,javascript 去空格.js朋友有福了代码如下:<script type="text/javascript"> alert(" 23".length +"|"+" 23".trim().length);</script>原文:https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String/Trim 阅读全文
posted @ 2012-11-15 09:49 肥仔-酷(code) 阅读(188) 评论(0) 推荐(0)
摘要: 工作需要弄一些和页面的模板,记录下来方便自己1 复制法1.1 编写一个table.html,代码如下,然后打开页面,全选复制,然后在excel中粘贴,效果如下 1 2 3 4 5 Document 6 9 10 11 12 表头13 14 xxxx15 xxxx16 xxxxxxxxxxxxxxxx17 xxxx18 xxxx19 20 21 xx... 阅读全文
posted @ 2013-08-11 09:36 肥仔-酷(code) 阅读(1246) 评论(1) 推荐(0)
摘要: 收集别人的资料加修改连接View Code public Connection getConn() throws SQLException { MysqlDataSource ds = new MysqlDataSource(); ds.setUrl("jdbc:mysql://localhost:3306/test?user=root&password=1"); return (Connection) ds.getConnection(); }主要代码View Code /** * 查询返回List集合 * * @pa... 阅读全文
posted @ 2013-05-04 21:28 肥仔-酷(code) 阅读(151) 评论(1) 推荐(0)
摘要: 记录下jdbc连接方式1.mysqlView Code 1 public Connection getConn() throws SQLException {2 MysqlDataSource ds = new MysqlDataSource();3 ds.setUrl("jdbc:mysql://localhost:3306/test?user=root&password=1");4 return (Connection) ds.getConnection();5 6 }2.通用 不同数据库用不同url(代码少个人比较喜欢)View C... 阅读全文
posted @ 2013-04-27 22:14 肥仔-酷(code) 阅读(186) 评论(0) 推荐(0)
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;//引入命名控件using ChartControl = System.Windows.Forms.DataVisualization.Charting;namespace 图形{ public partial class Form1 : For. 阅读全文
posted @ 2012-07-07 10:45 肥仔-酷(code) 阅读(1034) 评论(2) 推荐(0)