摘要: 1、SQL Server JDBCpublic static final String DRIVERNAME = "com.microsoft.sqlserver.jdbc.SQLServerDriver"; public static final String USERNAME = "sa"; p... 阅读全文
posted @ 2014-07-18 08:39 框框A 阅读(180) 评论(0) 推荐(0)
摘要: function is_number(field,div_id)//div_id是显示错误的div的ID{ var patt=new RegExp("^[0-9]{1,2}$");//建立正则表达式对象patt with(field){ if(patt.test(value)==false){//... 阅读全文
posted @ 2014-07-18 08:21 框框A 阅读(156) 评论(0) 推荐(0)
摘要: (非原创) 用户注册 用户名: 密 码: 确认密码: 警告:禁止粘贴 身份证号: 性 别:男女 出生日期: YYYY-MM-DD或者YYYY/MM/DD 籍 贯: 爱 好:音乐 篮球 旅游 睡觉 * 全选 反选 邮 箱: 手机号码: 自我介... 阅读全文
posted @ 2014-07-17 22:09 框框A 阅读(205) 评论(0) 推荐(0)
摘要: Show an error dialog that displays the message, 'alert':JOptionPane.showMessageDialog(null, "alert", "alert", JOptionPane.ERROR_MESSAGE); Show an inte... 阅读全文
posted @ 2014-07-17 21:41 框框A 阅读(621) 评论(0) 推荐(0)
摘要: (非原创)方式1: JSP前端 方式2: Java后台public void popAlert() { response.setCharacterEncoding("utf-8"); PrintWriter out = response.getWriter(); out.print(""); ou... 阅读全文
posted @ 2014-07-17 21:20 框框A 阅读(679) 评论(0) 推荐(0)
摘要: Ctrl+1 快速修复Ctrl+D 删除当前行Ctrl+/ 注释当前行,再按则取消注释 (对java代码有效)Ctrl+M 切换窗口的大小Ctrl+I 格式化激活的元素Format Active Elements。Ctrl+Shift+/ 自动注释代码Ctrl+Shift+\ 自动取消已经注释的代码... 阅读全文
posted @ 2014-07-17 21:07 框框A 阅读(194) 评论(0) 推荐(0)
摘要: 兴趣 /> 钢琴 /> 书法 /> 英语 阅读全文
posted @ 2014-07-17 16:48 框框A 阅读(1381) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2014-07-17 16:41 框框A 阅读(2798) 评论(0) 推荐(0)
摘要: 1、建立进行读写文件的java类//写文件public static void WriteFile(String filename,long counter) throws IOException {PrintWriter out=new PrintWriter(new FileWriter(fil... 阅读全文
posted @ 2014-07-17 16:25 框框A 阅读(310) 评论(0) 推荐(0)
摘要: 1、建立java类public class StudentManage {int pageSize = 3;//每页记录数 //获取记录总数 private int getTotalNum(String strWhere) throws SQLException { DbAccess dbAcce... 阅读全文
posted @ 2014-07-17 16:11 框框A 阅读(253) 评论(0) 推荐(0)