标签:ar sp on amp bs nbsp value val ls
if(monthValue==1||monthValue==3||monthValue==5||monthValue==7||monthValue==8||monthValue==10||monthValue==12) {
dayvalue = 31
}else if(monthValue==4||monthValue==6||monthValue==11||monthValue==9) {
dayvalue = 30
}else if(monthValue==2){
if(yearValue%4==0 && (yearValue%4 !=0 || yearValue%400==0)){ //闰年
dayvalue = 29
}else{
dayvalue = 28
}
}
标签:ar sp on amp bs nbsp value val ls
原文地址:http://www.cnblogs.com/afei-happy/p/4019553.html