|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
缺点:安全性不是太差了,还行,只要你充分利用系统自带的工具;唯一缺点就是执行效率慢,如何进行网站优化以后,效果会比较好。函数|函数21.IsObject()
FUNCTION:Returnsabooleanvalueindicatingwhetheranexpressionreferstoanautomationobject.
SYNTAX:IsObject(expression)
ARGUMENTS:expressionisanyvalidexpression.
EXAMPLE:<%
Setcon=Server.CreateObject("ADODB.Connection")
response.writeIsObject(con)
%>
RESULT:True
-------------------------------------
22.LBound()
FUNCTION:Returnsthebaseindexvalueforadimensionofanyarray.
SYNTAX:Lbound(arrayname[,dimension])
ARGUMENTS:arraynameisthenameofanyarray;dimensionisanoptionalnumberindicatingthedimension
tofindthelowerbound.
EXAMPLE:<%
i=Array("Monday","Tuesday","Wednesday")
response.writeLBound(i)
%>
RESULT:0
-------------------------------------
23.LCase()
FUNCTION:Returnsastringthathasbeenconvertedintolowercasecharacters.
SYNTAX:Lcase(string)
ARGUMENTS:stringisanyvalidstringexpression.
EXAMPLE:<%
strTest="Thisisatest!"
response.writeLCase(strTest)
%>
RESULT:thisisatest!
-------------------------------------
24.Left()
FUNCTION:Returnsthenumberofcharactersfromtheleftsideofastring.
SYNTAX:Left(string,length)
ARGUMENTS:stringisanyvalidstringexpression;lengthisthelengthofcharacterstoreturn.
EXAMPLE:<%
strTest="Thisisatest!"
response.writeLeft(strTest,3)
%>
RESULT:Thi
-------------------------------------
25.Len()
FUNCTION:Returnsthenumberofcharactersinastringorthenumberofbytesrequiredtostorea
variable.
SYNTAX:Len(string|varName)
ARGUMENTS:stringisanyvalidstringexpression;varNameisanyvalidvariablename.
EXAMPLE:<%
strTest="Thisisatest!"
response.writeLen(strTest)
%>
RESULT:15
(ThetotallengthofstrTestis15characters)
26.
LTrim()
FUNCTION:Returnsastringwithoutleadingspaces.
SYNTAX:LTrim(string)
ARGUMENTS:stringisanyvalidstringexpression.
EXAMPLE:<%
strTest="Thisisatest!"
response.writeLTrim(strTest)
%>
RESULT:Thisisatest!
-------------------------------------
27.Mid()
FUNCTION:Returnsaspecifiednumberofcharactersfromastring.
SYNTAX:Mid(string,start[,length])
ARGUMENTS:stringisanyvalidstringexpression;startisanumericcharacterpositiontobegin
extractionfrom;length(optional)isthenumberofcharacterstoreturn.
EXAMPLE:<%
strTest="Thisisatest!TodayisMonday."
response.writeMid(strTest,17,5)
%>
RESULT:Today
-------------------------------------
28.Minute()
FUNCTION:Returnsthenumberoftheminutesincurrentsystemtime.
SYNTAX:Minute(time)
ARGUMENTS:timeisanyvalidtimeexpression.
EXAMPLE:<%=Minute(#12:45:32PM#)%>
RESULT:45
-------------------------------------
29.Month()
FUNCTION:Returnsthenumberofthemonthoftheyear.
SYNTAX:Month(date)
ARGUMENTS:dateisanyvaliddateexpression.
EXAMPLE:<%=Month(#08/04/99#)%>
RESULT:8
-------------------------------------
30.MonthName()
FUNCTION:Returnsastringidentifyingthespecifiedmonth.
SYNTAX:MonthName(month,[,Abb])
ARGUMENTS:monthisthenumericrepresentationforagivenmonth;Abb(optional)isabooleanvalueused
todisplaymonthabbreviation.TruewilldisplaytheabbreviatedmonthnameandFalse(default)willnot
showtheabbreviation.
EXAMPLE:<%=MonthName(Month(#08/04/99#))%>
RESULT:August
-------------------------------------
31.Now()
FUNCTION:Returnsthecurrentsystemdateandtime.
SYNTAX:Now()
ARGUMENTS:None
EXAMPLE:<%=Now%>
RESULT:8/4/999:30:16AM
-------------------------------------
32.Replace()
FUNCTION:Returnsastringinwhichaspecifiedsub-stringhasbeenreplacedwithanothersubstringa
specifiednumberoftimes.
SYNTAX:Replace(strToBeSearched,st</p>强大的可扩展性。ASP具有强大的扩展性,可以实现与多种网络、硬件设备的连接:通过专用的通讯线路远程接入企业;通过远程拨号服务器为远程拨号客户提供服务;通过WAP为移动电话互联网客户服务。 |
|