Integer.parseInt(s)
java.text.SimpleDateFormat format = new java.text.SimpleDateFormat("yyyy/MM/dd");
Date d = format.parse("2002/04/23");
java.text.SimpleDateFormat format = new java.text.SimpleDateFormat("yyyy/MM/dd");
Date d = format.parse("2002/04/23");
java.text.SimpleDateFormat format = new java.text.SimpleDateFormat("yyyy/MM/dd");
Date d = format.parse("2002/04/23");
if(aChar < "0" || aChar > "9") {
return false;
}
return true;
}
上面的程序为JS,
如果在SERVER端,楼上的很对。