2014年3月2日

摘要: public boolean validate(){ boolean isOK=true; //用户名校验 if(this.username==null||this.username.trim().equals(" ")){ isOK=false; errors.put("username","用户名不能为空~!!!"); }else{ if(this.username.matches("[a-zA-Z](3,8)")){ isOK=false; errors.put("username",&q 阅读全文
posted @ 2014-03-02 14:27 可可青豆 阅读(388) 评论(0) 推荐(0)
 
摘要: // 日期选择// By Ziyue(http://www.web-v.com/)// 使用方法:// // var today; document.writeln("");function getDays(month, year){ var daysInMonth = new Array(31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31); //下面的这段代码是判断当前是否是闰年的 if (1 == month) return ((0 == year % 4) && (0 != (year % 100))) || 阅读全文
posted @ 2014-03-02 14:08 可可青豆 阅读(2669) 评论(0) 推荐(0)