Fday==0){
alert("請選擇您的出生日期。");
document.register.birthyear.focus();
return false;
}
else if(Fdate>Tdate){
alert("對不起,您未滿十八歲。");
document.register.birthyear.focus();
return false;
}
else
{
theDate = new Date(Fyear,Fmonth,0);
if (Fday > theDate.getDate ())
{
window.alert ("出生日期輸入錯誤!");
return false;
}
}
关键词:用Js判断输入的时间是否有效果.