根据日期得到生肖的ASP函数
时间:2022-06-23 11:39:40|栏目:ASP代码|点击: 次
根据生日时间返回所属生肖
<%
Function Zodiac(birthday)
If IsDate(birthday) Then
birthyear = Year(birthday)
ZodiacList = Array("猴", "鸡", "狗", "猪", "鼠", "牛", "虎", "兔", "龙", "蛇", "马", "羊")
Zodiac = ZodiacList(birthyear Mod 12)
End If
End Function
%>
复制代码 代码如下:
<%
Function Zodiac(birthday)
If IsDate(birthday) Then
birthyear = Year(birthday)
ZodiacList = Array("猴", "鸡", "狗", "猪", "鼠", "牛", "虎", "兔", "龙", "蛇", "马", "羊")
Zodiac = ZodiacList(birthyear Mod 12)
End If
End Function
%>
上一篇:写了段批量抓取某个列表页的东东
栏 目:ASP代码
下一篇:没有了
本文标题:根据日期得到生肖的ASP函数
本文地址:http://www.codeinn.net/misctech/205718.html