发新话题
打印

[分享] ASP中判断是不是闰年

本主题由 乖乖狗 于 2008-5-19 18:13 设置高亮

ASP中判断是不是闰年

闰年判别
<% if Request.Form("cal")="y" then n=Cint(Request.form("me")) if ((n mod 4=0) and (n mod 100<>0)) or (n mod 400=0) then Response.Write n & "是闰年!
" else Response.Write n&"不是闰年。
" end if end if %> 输入年份:

TOP