聯絡E-mail: sean0704@gmail.com
//使用者輸入的日期是 mydatevar re = RegExp("^([0-9]{4})[.-]{1}([0-9]{2})[.-]{1}([0-9]{2})$");if(!re.test(mydate)){ alert("格式錯誤"); return false;}
No comments:
Post a Comment