欧美性猛交XXXX免费看蜜桃,成人网18免费韩国,亚洲国产成人精品区综合,欧美日韩一区二区三区高清不卡,亚洲综合一区二区精品久久

打開(kāi)APP
userphoto
未登錄

開(kāi)通VIP,暢享免費電子書(shū)等14項超值服

開(kāi)通VIP
(新手們的好工具)ASP常用函數表
Array() 
函數返回一個(gè)數組 
表達式 Array(list) 
允許數據類(lèi)型: 字符,數字均可 
實(shí)例: <%
Dim myArray()
For i = 1 to 7
Redim Preserve myArray(i)
myArray(i) = WeekdayName(i)
Next
%> 
返回結果: 建立了一個(gè)包含7個(gè)元素的數組myArray
myArray("Sunday","Monday", ... ... "Saturday") 

CInt() 
函數將一個(gè)表達式轉化為數字類(lèi)型 
表達式 CInt(expression)
允許數據類(lèi)型: 任何有效的字符均可(不大于32767)
實(shí)例: <%
f = "234"
response.write cINT(f) + 2
%> 
返回結果: 236
轉化字符"234"為數字"234",如果字符串為空,則返回0值 

CreateObject() 
函數建立和返回一個(gè)已注冊的ACTIVEX組件的實(shí)例。 
表達式 CreateObject(objName) 
允許數據類(lèi)型: objName 是任何一個(gè)有效、已注冊的ACTIVEX組件的名字. 
實(shí)例: <%
Set con = Server.CreateObject("ADODB.Connection")
%> 

CStr() 
函數轉化一個(gè)表達式為字符串. 
表達式 CStr(expression) 
允許數據類(lèi)型: expression 是任何有效的表達式。 
實(shí)例: <%
s = 3 + 2
response.write "The 返回結果 is: " & cStr(s)
%> 
返回結果: 轉化數字“5”為字符“5”。 

Date() 
函數返回當前系統日期. 
表達式 Date() 
允許數據類(lèi)型: None. 
實(shí)例: <%=Date%> 
返回結果: 9/9/00 

DateAdd() 
函數返回一個(gè)被改變了的日期。 
表達式 DateAdd(timeinterval,number,date) 
允許數據類(lèi)型:
timeinterval is the time interval to add; 
number is amount of time intervals to add; 
 date is the starting date. 
實(shí)例: <%
currentDate = #9/9/00#
newDate = DateAdd("m",3,currentDate)
response.write newDate
%>
<%
currentDate = #12:34:45 PM#
newDate = DateAdd("h",3,currentDate)
response.write newDate
%> 
返回結果: 9/9/00
3:34:45 PM
"m" = "month";
"d" = "day";
If currentDate is in time format then,
"h" = "hour"; 
"s" = "second"; 

DateDiff() 
函數返回兩個(gè)日期之間的差值 。 
表達式 DateDiff(timeinterval,date1,date2 [, firstdayofweek [, firstweekofyear]]) 
允許數據類(lèi)型: timeinterval 表示相隔時(shí)間的類(lèi)型,如“M“表示“月”。 
實(shí)例: <%
fromDate = #9/9/00#
toDate = #1/1/2000#
response.write "There are " & _
DateDiff("d",fromDate,toDate) & _
" days to millenium from 9/9/00."
%> 
返回結果: 從9/9/00 到2000年還有 150 天. 

Day() 
函數返回一個(gè)月的第幾日 . 
表達式 Day(date) 
允許數據類(lèi)型: date 是任何有效的日期。 
實(shí)例: <%=Day(#9/9/00#)%> 
返回結果: 9 

formatCurrency() 
函數返回表達式,此表達式已被格式化為貨幣值 
表達式 formatCurrency(Expression [, Digit [, LeadingDigit [, Paren [, GroupDigit]]]]) 
允許數據類(lèi)型: Digit 指示小數點(diǎn)右側顯示位數的數值。默認值為 -1,指示使用的是計算機的區域設置; LeadingDigit 三態(tài)常數,指示是否顯示小數值小數點(diǎn)前面的零。 
實(shí)例: <%=formatCurrency(34.3456)%> 
返回結果: $34.35 

formatDateTime() 
函數返回表達式,此表達式已被格式化為日期或時(shí)間 
表達式 formatDateTime(Date, [, Namedformat]) 
允許數據類(lèi)型: Namedformat 指示所使用的日期/時(shí)間格式的數值,如果省略,則使用 vbGeneralDate. 
實(shí)例: <%=formatDateTime("09/9/00", vbLongDate)%> 
返回結果: Sunday, September 09, 2000

formatNumber() 
函數返回表達式,此表達式已被格式化為數值. 
表達式 formatNumber(Expression [, Digit [, LeadingDigit [, Paren [, GroupDigit]]]]) 
允許數據類(lèi)型: Digit 指示小數點(diǎn)右側顯示位數的數值。默認值為 -1,指示使用的是計算機的區域設置。; LeadingDigit i指示小數點(diǎn)右側顯示位數的數值。默認值為 -1,指示使用的是計算機的區域設置。; Paren 指示小數點(diǎn)右側顯示位數的數值。默認值為 -1,指示使用的是計算機的區域設置。; GroupDigit i指示小數點(diǎn)右側顯示位數的數值。默認值為 -1,指示使用的是計算機的區域設置。. 
實(shí)例: <%=formatNumber(45.324567, 3)%> 
返回結果: 45.325 

formatPercent() 
函數返回表達式,此表達式已被格式化為尾隨有 % 符號的百分比(乘以 100 )。 (%) 
表達式 formatPercent(Expression [, Digit [, LeadingDigit [, Paren [, GroupDigit]]]]) 
允許數據類(lèi)型: 同上. 
實(shí)例: <%=formatPercent(0.45267, 3)%> 
返回結果: 45.267% 

Hour() 
函數以24時(shí)返回小時(shí)數. 
表達式 Hour(time) 
允許數據類(lèi)型: 
實(shí)例: <%=Hour(#4:45:34 PM#)%> 
返回結果: 16
(Hour has been converted to 24-hour system) 

Instr() 
函數返回字符或字符串在另一個(gè)字符串中第一次出現的位置. 
表達式 Instr([start, ] strToBeSearched, strSearchFor [, compare]) 
允許數據類(lèi)型: Start為搜索的起始值,strToBeSearched接受搜索的字符串 strSearchFor要搜索的字符.compare比較方式(詳細見(jiàn)ASP常數) 
實(shí)例: <%
strText = "This is a test!!"
pos = Instr(strText, "a")
response.write pos
%> 
返回結果: 9 

InstrRev() 
函數同上,只是從字符串的最后一個(gè)搜索起 
表達式 InstrRev([start, ] strToBeSearched, strSearchFor [, compare]) 
允許數據類(lèi)型: 同上. 
實(shí)例: <%
strText = "This is a test!!"
pos = InstrRev(strText, "s")
response.write pos
%> 
返回結果: 13

Int() 
函數返回數值類(lèi)型,不四舍五入。 
表達式 Int(number) 
允許數據類(lèi)型: 
實(shí)例: <%=INT(32.89)%> 
返回結果: 32 

IsArray() 
函數判斷一對象是否為數組,返回布爾值 . 
表達式 IsArray(name) 
實(shí)例: <%
strTest = "Test!"
response.write IsArray(strTest)
%> 
返回結果: False 

IsDate() 
函數判斷一對象是否為日期,返回布爾值 
表達式 IsDate(expression) 
實(shí)例: <%
strTest = "9/4/2000"
response.write IsDate(strTest)
%> 
返回結果: True 

IsEmpty() 
函數判斷一對象是否初始化,返回布爾值. 
表達式 IsEmpty(expression) 
實(shí)例: <%
Dim i
response.write IsEmpty(i)
%> 
返回結果: True 

IsNull() 
函數判斷一對象是否為空,返回布爾值. 
表達式 IsNull(expression) 
實(shí)例: <%
Dim i
response.write IsNull(i)
%> 
返回結果: False 

IsNumeric() 
函數判斷一對象是否為數字,返回布爾值. 
表達式 IsNumeric(expression) 
實(shí)例: <%
i = "345"
response.write IsNumeric(i)
%> 
返回結果: True
就算數字加了引號,ASP還是認為它是數字。 

IsObject() 
函數判斷一對象是否為對象,返回布爾值. 
表達式 IsObject(expression) 
實(shí)例: <%
Set con = Server.CreateObject("ADODB.Connection")
response.write IsObject(con)
%> 
返回結果: True 

LBound() 
函數返回指定數組維的最小可用下標. 
表達式 Lbound(arrayname [, dimension]) 
實(shí)例: <%
i = Array("Monday","Tuesday","Wednesday")
response.write LBound(i)
%> 
返回結果: 0 

LCase() 
函數 返回字符串的小寫(xiě)形式 
表達式 Lcase(string) 
實(shí)例: <%
strTest = "This is a test!"
response.write LCase(strTest)
%> 
返回結果: this is a test! 

Left() 
函數返回字符串左邊第length個(gè)字符以前的字符(含第length個(gè)字符). 
表達式 Left(string, length) 
實(shí)例: <%
strTest = "This is a test!"
response.write Left(strTest, 3)
%> 
返回結果: Thi 

Len() 
函數返回字符串的長(cháng)度. 
表達式 Len(string | varName) 
實(shí)例: <%
strTest = "This is a test!"
response.write Len(strTest)
%> 
返回結果: 15 

LTrim() 
函數去掉字符串左邊的空格. 
表達式 LTrim(string) 
實(shí)例: <%
strTest = " This is a test!"
response.write LTrim(strTest)
%> 
返回結果: This is a test! 

Mid() 
函數返回特定長(cháng)度的字符串(從start開(kāi)始,長(cháng)度為length). 
表達式 Mid(string, start [, length]) 
實(shí)例: <%
strTest = "This is a test! Today is Monday."
response.write Mid(strTest, 17, 5)
%> 
返回結果: Today 

Minute() 
函數返回時(shí)間的分鐘. 
表達式 Minute(time) 
實(shí)例: <%=Minute(#12:45:32 PM#)%> 
返回結果: 45 

Month() 
函數返回日期. 
表達式 Month(date) 
實(shí)例: <%=Month(#08/04/99#)%> 
返回結果: 8 

MonthName() 
函數返回指定月份
表達式 MonthName(month, [, Abb]) 
實(shí)例: <%=MonthName(Month(#08/04/99#))%> 
返回結果: August 

Now() 
函數返回系統時(shí)間 
表達式 Now() 
實(shí)例: <%=Now%> 
返回結果: 9/9/00 9:30:16 AM 

Right() 
函數返回字符串右邊第length個(gè)字符以前的字符(含第length個(gè)字符). 
表達式 Right(string, length) 
實(shí)例: <% 
strTest = "This is an test!"
response.write Right(strTest, 3)
%> 
返回結果: st! 

Rnd() 
函數產(chǎn)生一個(gè)隨機數. 
表達式 Rnd [ (number) ] 
實(shí)例: <%
Romize()
response.write RND()
%> 
返回結果: 任何一個(gè)在0 到 1 之間的數 

Round() 
函數返回按指定位數進(jìn)行四舍五入的數值. 
表達式 Round(expression [, numRight]) 
實(shí)例: <%
i = 32.45678
response.write Round(i)
%> 
返回結果: 32 

Rtrim() 
函數去掉字符串右邊的字符串. 
表達式 Rtrim(string) 
實(shí)例: <%
strTest = "This is a test!! "
response.write RTrim(strTest)
%> 
返回結果: This is a test!! 

Split()
函數將一個(gè)字符串分割并返回分割結果
表達式 Split (S[,d]) 
實(shí)例:<%V= Split(A,B,C)
For i = 0 To UBound(V)
Response.Write V(i)
Next
%>
返回結果: A B C

Second() 
函數返回秒. 
表達式 Second(time) 
實(shí)例: <%=Second(#12:34:28 PM#)%> 
返回結果: 28 

StrReverse() 
函數反排一字符串 
表達式 StrReverse(string) 
實(shí)例: <%
strTest = "This is a test!!"
response.write StrReverse(strTest)
%> 
返回結果: !!tset a si sihT 

Time() 
函數返回系統時(shí)間. 
表達式 Time() 
實(shí)例: <%=Time%> 
返回結果: 9:58:28 AM 

Trim() 
函數去掉字符串左右的空格. 
表達式 Trim(string) 
實(shí)例: <%
strTest = " This is a test!! "
response.write Trim(strTest)
%> 
返回結果: This is a test!! 

UBound() 
函數返回指定數組維數的最大可用下標>. 
表達式 Ubound(arrayname [, dimension]) 
實(shí)例: <%
i = Array("Monday","Tuesday","Wednesday")
response.write UBound(i)
%> 
返回結果: 2 

UCase() 
函數返回字符串的大寫(xiě)形式. 
表達式 UCase(string) 
允許數據類(lèi)型: 
實(shí)例: <%
strTest = "This is a test!!"
response.write UCase(strTest)
%> 
返回結果: THIS IS A TEST!! 

VarType() 
函數返回指示變量子類(lèi)型的值 
表達式 VarType(varName) 
實(shí)例: <%
i = 3
response.write varType(i)
%> 
返回結果: 2(數字)詳見(jiàn)"asp常數" 

WeekDay() 
函數返回在一周的第幾天. 
表達式 WeekDay(date [, firstdayofweek]) 
實(shí)例: <%
d = #9/9/00#
response.write Weekday(d)
%> 
返回結果: 4(星期三) 

WeekDayName() 
函數返回一周第幾天的名字. 
表達式 WeekDayName(weekday [, Abb [, firstdayofweek]]) 
實(shí)例: <%
d = #9/9/00#
response.write WeekdayName(Weekday(d))
%> 
返回結果: Wednesday 

Year() 
函數返回當前的年份. 
表達式 Year(date) 
實(shí)例: <%=Year(#9/9/00#)%> 
返回結果: 1999
本站僅提供存儲服務(wù),所有內容均由用戶(hù)發(fā)布,如發(fā)現有害或侵權內容,請點(diǎn)擊舉報。
打開(kāi)APP,閱讀全文并永久保存 查看更多類(lèi)似文章
猜你喜歡
類(lèi)似文章
ASP內置對象Response
VBScript函數大字典(詳細說(shuō)明2)
ASP中各函數解析
ASP實(shí)用函數庫
深入談?wù)?C# 的 String.CompareTo
VBScript內置函數
更多類(lèi)似文章 >>
生活服務(wù)
分享 收藏 導長(cháng)圖 關(guān)注 下載文章
綁定賬號成功
后續可登錄賬號暢享VIP特權!
如果VIP功能使用有故障,
可點(diǎn)擊這里聯(lián)系客服!

聯(lián)系客服

欧美性猛交XXXX免费看蜜桃,成人网18免费韩国,亚洲国产成人精品区综合,欧美日韩一区二区三区高清不卡,亚洲综合一区二区精品久久