|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
楼上说交互性不好,太牵强了吧。在微软提供的一套框架中,利用asp做网站,开发效率高,使用人数少,减少不必要的开销。交互性是互动方式,是有开发人员决定的。函数|详解LCase()
FUNCTION:前往字符串的小写情势
SYNTAX:Lcase(string)
ARGUMENTS:stringisanyvalidstringexpression.
EXAMPLE:<%
strTest="Thisisatest!"
response.writeLCase(strTest)
%>
RESULT:thisisatest!
Left()
FUNCTION:前往字符串右边第length个字符之前的字符(含第length个字符).
SYNTAX:Left(string,length)
ARGUMENTS:
EXAMPLE:<%
strTest="Thisisatest!"
response.writeLeft(strTest,3)
%>
RESULT:Thi
Len()
FUNCTION:前往字符串的长度.
SYNTAX:Len(string|varName)
ARGUMENTS:
EXAMPLE:<%
strTest="Thisisatest!"
response.writeLen(strTest)
%>
RESULT:15
LTrim()
FUNCTION:往失落字符串右边的空格.
SYNTAX:LTrim(string)
ARGUMENTS:
EXAMPLE:<%
strTest="Thisisatest!"
response.writeLTrim(strTest)
%>
RESULT:Thisisatest!
Mid()
FUNCTION:前往特定长度的字符串(从start入手下手,长度为length).
SYNTAX:Mid(string,start[,length>)
ARGUMENTS:
EXAMPLE:<%
strTest="Thisisatest!TodayisMonday."
response.writeMid(strTest,17,5)
%>
RESULT:Today
Minute()
FUNCTION:前往工夫的分钏.
SYNTAX:Minute(time)
ARGUMENTS:
EXAMPLE:<%=Minute(#12:45:32PM#)%>
RESULT:45
Month()
FUNCTION:前往日期.
SYNTAX:Month(date)
ARGUMENTS:dateisanyvaliddateexpression.
EXAMPLE:<%=Month(#08/04/99#)%>
RESULT:8
MonthName()
FUNCTION:Returnsastringidentifyingthespecifiedmonth.
SYNTAX:MonthName(month,[,Abb>)
ARGUMENTS:monthisthenumericrepresentationforagivenmonth;Abb(optional)isabooleanvalueusedtodisplaymonthabbreviation.TruewilldisplaytheabbreviatedmonthnameandFalse(default)willnotshowtheabbreviation.
EXAMPLE:<%=MonthName(Month(#08/04/99#))%>
RESULT:August
Now()
FUNCTION:Returnsthecurrentsystemdateandtime.
SYNTAX:Now()
ARGUMENTS:None
EXAMPLE:<%=Now%>
RESULT:8/4/999:30:16AM
Replace()
FUNCTION:Returnsastringinwhichaspecifiedsub-stringhasbeenreplacedwithanothersubstringaspecifiednumberoftimes.
SYNTAX:Replace(strToBeSearched,strSearchFor,strReplaceWith[,start[,count[,compare>>>)
ARGUMENTS:strToBeSearchedisastringexpressioncontainingasub-stringtobereplaced;strSearchForisthestringexpressiontosearchforwithinstrToBeSearched;strReplaceWithisthestringexpressiontoreplacesub-stringstrSearchFor;start(optional)isthenumericcharacterpositiontobeginsearch;count(optional)isavalueindicatingthecomparisionconstant.
EXAMPLE:<%
strTest="Thisisanapple!"
response.writeReplace(strTest,"apple","orange")
%>
RESULT:Thisisanorange!
Right()
FUNCTION:前往字符串右侧第length个字符之前的字符(含第length个字符).
SYNTAX:Right(string,length)
ARGUMENTS:.
EXAMPLE:<%
strTest="Thisisantest!"
response.writeRight(strTest,3)
%>
RESULT:st!
Rnd()
FUNCTION:发生一个随机数.
SYNTAX:Rnd[(number)>
ARGUMENTS:
EXAMPLE:<%
Randomize()
response.writeRND()
%>
RESULT:任何一个在0到1之间的数
Round()
FUNCTION:前往按指定位数举行四舍五进的数值.
SYNTAX:Round(expression[,numRight>)
ARGUMENTS:numRight数字标明小数点右侧有几位举行四舍五进。假如省略,则Round函数前往整数.
EXAMPLE:<%
i=32.45678
response.writeRound(i)
%>
RESULT:32
Rtrim()
FUNCTION:往失落字符串右侧的字符串.
SYNTAX:Rtrim(string)
ARGUMENTS:
EXAMPLE:<%
strTest="Thisisatest!!"
response.writeRTrim(strTest)
%>
RESULT:Thisisatest!!
Second()
FUNCTION:前往秒.
SYNTAX:Second(time)
ARGUMENTS:.
EXAMPLE:<%=Second(#12:34:28PM#)%>
RESULT:28
StrReverse()
FUNCTION:反排一字符串
SYNTAX:StrReverse(string)
ARGUMENTS:
EXAMPLE:<%
strTest="Thisisatest!!"
response.writeStrReverse(strTest)
%>
RESULT:!!tsetasisihT
Time()
FUNCTION:前往体系工夫.
SYNTAX:Time()
ARGUMENTS:.
EXAMPLE:<%=Time%>
RESULT:9:58:28AM
Trim()
FUNCTION:往失落字符串摆布的空格.
SYNTAX:Trim(string)
ARGUMENTS:stringisanyvalidstringexpression.
EXAMPLE:<%
strTest="Thisisatest!!"
response.writeTrim(strTest)
%>
RESULT:Thisisatest!!
UBound()
FUNCTION:前往指定命组维数的最年夜可用下标.
SYNTAX:Ubound(arrayname[,dimension>)
ARGUMENTS:dimension(optional)指定前往哪一维上界的整数。1暗示第一维,2暗示第二维,以此类推。假如省略dimension参数,则默许值为1.
EXAMPLE:<%
i=Array("Monday","Tuesday","Wednesday")
response.writeUBound(i)
%>
RESULT:2
UCase()
FUNCTION:前往字符串的年夜写情势.
SYNTAX:UCase(string)
ARGUMENTS:
EXAMPLE:<%
strTest="Thisisatest!!"
response.writeUCase(strTest)
%>
RESULT:THISISATEST!!
VarType()
FUNCTION:前往唆使变量子范例的值
SYNTAX:VarType(varName)
ARGUMENTS:
EXAMPLE:<%
i=3
response.writevarType(i)
%>
RESULT:2(数字)详见"asp常数"
WeekDay()
FUNCTION:前往在一周的第几天.
SYNTAX:WeekDay(date[,firstdayofweek>)
ARGUMENTS:.
EXAMPLE:<%
d=#8/4/99#
response.writeWeekday(d)
%>
RESULT:4(礼拜三)
WeekDayName()
FUNCTION:前往一周第几天的名字.
SYNTAX:WeekDayName(weekday[,Abb[,firstdayofweek>>)
ARGUMENTS:Abb可选。Boolean值,指明是不是缩写暗示礼拜各天的称号。假如省略,默许值为False,即不缩写礼拜各天的称号.firstdayofweek指明礼拜第一天的数值
EXAMPLE:<%
d=#8/4/99#
response.writeWeekdayName(Weekday(d))
%>
RESULT:Wednesday
Year()
FUNCTION:前往以后的年份.
SYNTAX:Year(date)
ARGUMENTS:
EXAMPLE:<%=Year(#8/4/99#)%>
RESULT:1999使用cdonts,可以发送、查看邮件,实现webmail的功能。结合wsh,可以实现对nt主机的管理,如nt用户管理、iis虚拟主机设置、exchange邮箱设置等等,就像管理本地机一样方便。 |
|