当前位置:编程学习 > asp >>

根据日期得到生肖的ASP函数

答案:根据生日时间返回所属生肖

<%
Function Zodiac(birthday)
If IsDate(birthday) Then
birthyear = Year(birthday)
ZodiacList = Array("猴", "鸡", "狗", "猪", "鼠", "牛", "虎", "兔", "龙", "蛇", "马", "羊")
Zodiac = ZodiacList(birthyear Mod 12)
End If
End Function
%>

上一个:Script.VBS.Agent.ai juan.vbs专杀
下一个:asp防范跨站点脚本攻击的的方法

CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,