摘要:
public List getAll(){ Connection conn = null; PreparedStatement st = null; ResultSet rs = null; try{ conn = JdbcUtils.getConnection(); String sql = "select * from customer"; st = conn.prepareStatement(sql); rs = st.execu... 阅读全文
posted @ 2013-07-06 21:02
亂舞春秋
阅读(188)
评论(0)
推荐(0)
摘要:
public void add(Customer c){ Connection conn = null; PreparedStatement st = null; ResultSet rs = null; try{ conn = JdbcUtils.getConnection();//工具类jdbcUtils,连接数据库,三层架构思想体现非常重要 //此方法预防sql注入,采用prepareStatement ,注意SQL 代码的写法 String sql = "in... 阅读全文
posted @ 2013-07-06 19:07
亂舞春秋
阅读(268)
评论(0)
推荐(0)
摘要:
一共两个文件:1. birthdays.js/*加载年份*/function years(obj, Cyear) { var len = 114; // select长度,即option数量 var selObj = document.getElementById(obj); var selIndex = len - 1; var newOpt; // OPTION对象 // 循环添加OPION元素到年份select对象中 for (i = 1; i 出生年份: 就这样吧,很简单,复制,粘贴,保存对文件名就能用了... 阅读全文
posted @ 2013-07-06 12:17
亂舞春秋
阅读(4371)
评论(0)
推荐(0)
浙公网安备 33010602011771号