|
Mid() <br/>FUNCTION: 返回特定长度的字符串(从start开始,长度为length). <br/>SYNTAX: Mid(string, start [, length]) <br/>ARGUMENTS: <br/>EXAMPLE: <%<br/>strTest = "This is a test! Today is Monday."<br/>response.write Mid(strTest, 17, 5)<br/>%> <br/>RESULT: Today <br/><br/>Minute() <br/>FUNCTION: 返回时间的分钏. <br/>SYNTAX: Minute(time) <br/>ARGUMENTS: <br/>EXAMPLE: <%=Minute(#12:45:32 PM#)%> <br/>RESULT: 45 <br/><br/>Month() <br/>FUNCTION: 返回日期. <br/>SYNTAX: Month(date) <br/>ARGUMENTS: date is any valid date expression. <br/>EXAMPLE: <%=Month(#08/04/99#)%> <br/>RESULT: 8 <br/><br/>MonthName() <br/>FUNCTION: Returns a string identifying the specified month. <br/>SYNTAX: MonthName(month, [, Abb]) <br/>ARGUMENTS: month is the numeric representation for a given month; Abb <br/>(optional) is a boolean value used to display month abbreviation. True <br/>will display the abbreviated month name and False (default) will not show <br/>the abbreviation. <br/>EXAMPLE: <%=MonthName(Month(#08/04/99#))%> <br/>RESULT: August <br/><br/>Now() <br/>FUNCTION: Returns the current system date and time. <br/>SYNTAX: Now() <br/>ARGUMENTS: None <br/>EXAMPLE: <%=Now%> <br/>RESULT: 8/4/99 9:30:16 AM <br/><br/>Replace() <br/>FUNCTION: Returns a string in which a specified sub-string has been <br/>replaced with another substring a specified number of times. <br/>SYNTAX: Replace(strToBeSearched, strSearchFor, strReplaceWith [, start <br/>][, count ][, compare]]]) <br/>ARGUMENTS: strToBeSearched is a string expression containing a sub-<br/>string to be replaced; strSearchFor is the string expression to search for <br/>within strToBeSearched; strReplaceWith is the string expression to replace <br/>sub-string strSearchFor; start (optional) is the numeric character <br/>position to begin search; count (optional) is a value indicating the <br/>comparision constant. <br/>EXAMPLE: <% <br/>strTest = "This is an apple!"<br/>response.write Replace(strTest, "apple", "orange")<br/>%> <br/>RESULT: This is an orange! <br/><br/>Right() <br/>FUNCTION: 返回字符串右边第length个字符以前的字符(含第length个字符). <br/>SYNTAX: Right(string, length) <br/>ARGUMENTS: . <br/>EXAMPLE: <% <br/>strTest = "This is an test!"<br/>response.write Right(strTest, 3)<br/>%> <br/>RESULT: st! <br/><br/>Rnd() <br/>FUNCTION: 产生一个随机数. <br/>SYNTAX: Rnd [ (number) ] <br/>ARGUMENTS: <br/>EXAMPLE: <%<br/>Randomize()<br/>response.write RND()<br/>%> <br/>RESULT: 任何一个在0 到 1 之间的数 <br/><br/>Round() <br/>FUNCTION: 返回按指定位数进行四舍五入的数值. <br/>SYNTAX: Round(expression [, numRight]) <br/>ARGUMENTS: numRight数字表明小数点右边有多少位进行四舍五入。如果省略,则 <br/>Round 函数返回整数. <br/>EXAMPLE: <%<br/>i = 32.45678<br/>response.write Round(i)<br/>%> <br/>RESULT: 32 <br/><br/>Rtrim() <br/>FUNCTION: 去掉字符串右边的字符串. <br/>SYNTAX: Rtrim(string) <br/>ARGUMENTS: <br/>EXAMPLE: <%<br/>strTest = "This is a test!! "<br/>response.write RTrim(strTest)<br/>%> <br/>RESULT: This is a test!! <br/> |
|