rnd()
函数产生一个随机数.
表达式 rnd [ (number) ]
实例: <%
randomize()
response.write rnd()
%>
返回结果: 任何一个在0 到 1 之间的数
round()
函数返回按指定位数进行四舍五入的数值.
表达式 round(expression [, numright])
实例: <%
i = 32.45678
response.write round(i)
%>
返回结果: 32
rtrim()
函数去掉字符串右边的字符串.
表达式 rtrim(string)
实例: <%
strtest = "this is a test!! "
response.write rtrim(strtest)
%>
返回结果: this is a test!!
split()
函数将一个字符串分割并返回分割结果
表达式 split (s[,d])
实例:<%v= split(a,b,c)
for i = 0 to ubound(v)
response.write v(i)
next
%>
返回结果: a b c
second()
函数返回秒.
表达式 second(time)
实例: <%=second(#12:34:28 pm#)%>
返回结果: 28
strreverse()
函数反排一字符串
表达式 strreverse(string)
实例: <%
strtest = "this is a test!!"
response.write strreverse(strtest)
%>
返回结果: !!tset a si siht
time()
函数返回系统时间.
表达式 time()
实例: <%=time%>
返回结果: 9:58:28 am
trim()
函数去掉字符串左右的空格.
表达式 trim(string)
实例: <%
strtest = " this is a test!! "
response.write trim(strtest)
%>
返回结果: this is a test!!
ubound()
函数返回指定数组维数的最大可用下标>.
表达式 ubound(arrayname [, dimension])
实例: <%
i = array("monday","tuesday","wednesday")
response.write ubound(i)
%>
返回结果: 2
ucase()
函数返回字符串的大写形式.
表达式 ucase(string)
允许数据类型:
实例: <%
strtest = "this is a test!!"
response.write ucase(strtest)
%>
返回结果: this is a test!!
vartype()
函数返回指示变量子类型的值
表达式 vartype(varname)
实例: <%
i = 3
response.write vartype(i)
%>
返回结果: 2(数字)详见"asp常数"
weekday()
函数返回在一周的第几天.
表达式 weekday(date [, firstdayofweek])
实例: <%
d = #9/9/00#
response.write weekday(d)
%>
返回结果: 4(星期三)
weekdayname()
函数返回一周第几天的名字.
表达式 weekdayname(weekday [, abb [, firstdayofweek]])
实例: <%
d = #9/9/00#
response.write weekdayname(weekday(d))
%>
返回结果: wednesday
year()
函数返回当前的年份.
表达式 year(date)
实例: <%=year(#9/9/00#)%>
返回结果: 1999
Java Asp PHP .Net XML C/C++ CGI VB Jsp J2ee J2se J2me EJB Servlet Tomcat Resin Struts Weblogic Eclipse ANT GUI JMS Web servise IDEA Webphere Hibernate Spring Jboss Applet Swing Socket Javamail Perl Ajax P2P 安全 模式 框架 测试 开源 游戏
Windows XP Windows 2000 Windows 2003 Windows Me Windows 9.x Linux UNIX 注册表 操作系统 服务器 应用服务器