{"id":212,"date":"2008-12-04T09:05:52","date_gmt":"2008-12-04T01:05:52","guid":{"rendered":""},"modified":"2014-02-27T23:00:25","modified_gmt":"2014-02-27T15:00:25","slug":"asp%e7%9a%84%e5%87%bd%e6%95%b0%e8%af%a6%e8%a7%a3","status":"publish","type":"post","link":"http:\/\/www.xiaoyebailong.com\/index.php\/2008\/12\/04\/212.htm","title":{"rendered":"ASP\u7684\u51fd\u6570\u8be6\u89e3"},"content":{"rendered":"<p><b>Array()<\/b><br \/>\n\u3000\u3000FUNCTION: \u8fd4\u56de\u4e00\u4e2a\u6570\u7ec4<br \/>\n\u3000\u3000SYNTAX: Array(list)<br \/>\n\u3000\u3000ARGUMENTS: \u5b57\u7b26\uff0c\u6570\u5b57\u5747\u53ef<br \/>\n\u3000\u3000EXAMPLE: <b>&lt;%<br \/>\n\u3000\u3000Dim myArray()<br \/>\n\u3000\u3000For i = 1 to 7<br \/>\n\u3000\u3000Redim Preserve myArray(i)<br \/>\n\u3000\u3000myArray(i) = WeekdayName(i)<br \/>\n\u3000\u3000Next<br \/>\n\u3000\u3000%&gt;<\/b><br \/>\n\u3000\u3000RESULT: \u5efa\u7acb\u4e86\u4e00\u4e2a\u5305\u542b7\u4e2a\u5143\u7d20\u7684\u6570\u7ec4myArray<br \/>\n\u3000\u3000myArray(&quot;Sunday&quot;,&quot;Monday&quot;, &#8230; &#8230; &quot;Saturday&quot;)<\/p>\n<p><b>CInt()<\/b><br \/>\n\u3000\u3000FUNCTION: \u5c06\u4e00\u4e2a\u8868\u8fbe\u5f0f\u8f6c\u5316\u4e3a\u6570\u5b57\u7c7b\u578b<br \/>\n\u3000\u3000SYNTAX: CInt(expression)<br \/>\n\u3000\u3000ARGUMENTS: \u4efb\u4f55\u6709\u6548\u7684\u5b57\u7b26\u5747\u53ef<br \/>\n\u3000\u3000EXAMPLE: <b>&lt;%<br \/>\n\u3000\u3000f = &quot;234&quot;<br \/>\n\u3000\u3000response.write cINT(f) + 2<br \/>\n\u3000\u3000%&gt;<\/b><br \/>\n\u3000\u3000RESULT: 236<br \/>\n\u3000\u3000\u8f6c\u5316\u5b57\u7b26&quot;234&quot;\u4e3a\u6570\u5b57&quot;234&quot;\uff0c\u5982\u679c\u5b57\u7b26\u4e32\u4e3a\u7a7a\uff0c\u5219\u8fd4\u56de0\u503c<\/p>\n<p><b>CreateObject()<\/b><br \/>\n\u3000\u3000FUNCTION: \u5efa\u7acb\u548c\u8fd4\u56de\u4e00\u4e2a\u5df2\u6ce8\u518c\u7684ACTIVEX\u7ec4\u4ef6\u7684\u5b9e\u4f8b\u3002<br \/>\n\u3000\u3000SYNTAX: CreateObject(objName)<br \/>\n\u3000\u3000ARGUMENTS: objName \u662f\u4efb\u4f55\u4e00\u4e2a\u6709\u6548\u3001\u5df2\u6ce8\u518c\u7684ACTIVEX\u7ec4\u4ef6\u7684\u540d\u5b57.<br \/>\n\u3000\u3000EXAMPLE: <b>&lt;%<br \/>\n\u3000\u3000Set con = Server.CreateObject(&quot;ADODB.Connection&quot;)<br \/>\n\u3000\u3000%&gt;<\/b><br \/>\n\u3000\u3000RESULT:<\/p>\n<p><b>CStr()<\/b><br \/>\n\u3000\u3000FUNCTION: \u8f6c\u5316\u4e00\u4e2a\u8868\u8fbe\u5f0f\u4e3a\u5b57\u7b26\u4e32.<br \/>\n\u3000\u3000SYNTAX: CStr(expression)<br \/>\n\u3000\u3000ARGUMENTS: expression \u662f\u4efb\u4f55\u6709\u6548\u7684\u8868\u8fbe\u5f0f\u3002<br \/>\n\u3000\u3000EXAMPLE: <b>&lt;%<br \/>\n\u3000\u3000s = 3 + 2<br \/>\n\u3000\u3000response.write &quot;The result is: &quot; &amp; cStr(s)<br \/>\n\u3000\u3000%&gt;<\/b><br \/>\n\u3000\u3000RESULT: \u8f6c\u5316\u6570\u5b57&ldquo;5&rdquo;\u4e3a\u5b57\u7b26&ldquo;5&rdquo;\u3002<\/p>\n<p><b>Date()<\/b><br \/>\n\u3000\u3000FUNCTION: \u8fd4\u56de\u5f53\u524d\u7cfb\u7edf\u65e5\u671f.<br \/>\n\u3000\u3000SYNTAX: Date()<br \/>\n\u3000\u3000ARGUMENTS: None.<br \/>\n\u3000\u3000EXAMPLE: <b>&lt;%=Date%&gt;<\/b><br \/>\n\u3000\u3000RESULT: 8\/4\/99<\/p>\n<p><b>DateAdd()<\/b><br \/>\n\u3000\u3000FUNCTION: \u8fd4\u56de\u4e00\u4e2a\u88ab\u6539\u53d8\u4e86\u7684\u65e5\u671f\u3002<br \/>\n\u3000\u3000SYNTAX: DateAdd(timeinterval,number,date)<br \/>\n\u3000\u3000ARGUMENTS: timeinterval is the time interval to add; number is amount of time intervals to add; and date is the starting date.<br \/>\n\u3000\u3000EXAMPLE: <b>&lt;%<br \/>\n\u3000\u3000currentDate = #8\/4\/99#<br \/>\n\u3000\u3000newDate = DateAdd(&quot;m&quot;,3,currentDate)<br \/>\n\u3000\u3000response.write newDate<br \/>\n\u3000\u3000%&gt;<\/b><\/p>\n<p>\u3000\u3000<b>&lt;%<br \/>\n\u3000\u3000currentDate = #12:34:45 PM#<br \/>\n\u3000\u3000newDate = DateAdd(&quot;h&quot;,3,currentDate)<br \/>\n\u3000\u3000response.write newDate<br \/>\n\u3000\u3000%&gt;<\/b><br \/>\n\u3000\u3000RESULT: 11\/4\/99<br \/>\n\u3000\u30003:34:45 PM<\/p>\n<p>\u3000\u3000&quot;m&quot; = &quot;month&quot;;<br \/>\n\u3000\u3000&quot;d&quot; = &quot;day&quot;;<\/p>\n<p>\u3000\u3000If currentDate is in time format then,<br \/>\n\u3000\u3000&quot;h&quot; = &quot;hour&quot;;<br \/>\n\u3000\u3000&quot;s&quot; = &quot;second&quot;;<\/p>\n<p><b>DateDiff()<\/b><br \/>\n\u3000\u3000FUNCTION: \u8fd4\u56de\u4e24\u4e2a\u65e5\u671f\u4e4b\u95f4\u7684\u5dee\u503c \u3002<br \/>\n\u3000\u3000SYNTAX: DateDiff(timeinterval,date1,date2 [, firstdayofweek [, firstweekofyear&gt;&gt;)<br \/>\n\u3000\u3000ARGUMENTS: timeinterval \u8868\u793a\u76f8\u9694\u65f6\u95f4\u7684\u7c7b\u578b\uff0c\u5982&ldquo;M&ldquo;\u8868\u793a&ldquo;\u6708&rdquo;\u3002<br \/>\n\u3000\u3000EXAMPLE: <b>&lt;%<br \/>\n\u3000\u3000fromDate = #8\/4\/99#<br \/>\n\u3000\u3000toDate = #1\/1\/2000#<br \/>\n\u3000\u3000response.write &quot;There are &quot; &amp; _<br \/>\n\u3000\u3000DateDiff(&quot;d&quot;,fromDate,toDate) &amp; _<br \/>\n\u3000\u3000&quot; days to millenium from 8\/4\/99.&quot;<br \/>\n\u3000\u3000%&gt;<\/b><br \/>\n\u3000\u3000RESULT: \u4ece8\/4\/99 \u52302000\u5e74\u8fd8\u6709 150 \u5929.<\/p>\n<p><b>Day()<\/b><br \/>\n\u3000\u3000FUNCTION: \u8fd4\u56de\u4e00\u4e2a\u6708\u7684\u7b2c\u51e0\u65e5 .<br \/>\n\u3000\u3000SYNTAX: Day(date)<br \/>\n\u3000\u3000ARGUMENTS: date \u662f\u4efb\u4f55\u6709\u6548\u7684\u65e5\u671f\u3002<br \/>\n\u3000\u3000EXAMPLE: <b>&lt;%=Day(#8\/4\/99#)%&gt;<\/b><br \/>\n\u3000\u3000RESULT: 4<\/p>\n<p><b>FormatCurrency()<\/b><br \/>\n\u3000\u3000FUNCTION: \u8fd4\u56de\u8868\u8fbe\u5f0f\uff0c\u6b64\u8868\u8fbe\u5f0f\u5df2\u88ab\u683c\u5f0f\u5316\u4e3a\u8d27\u5e01\u503c<br \/>\n\u3000\u3000SYNTAX: FormatCurrency(Expression [, Digit [, LeadingDigit [, Paren [, GroupDigit&gt;&gt;&gt;&gt;)<br \/>\n\u3000\u3000ARGUMENTS: Digit \u6307\u793a\u5c0f\u6570\u70b9\u53f3\u4fa7\u663e\u793a\u4f4d\u6570\u7684\u6570\u503c\u3002\u9ed8\u8ba4\u503c\u4e3a -1\uff0c\u6307\u793a\u4f7f\u7528\u7684\u662f\u8ba1\u7b97\u673a\u7684\u533a\u57df\u8bbe\u7f6e; \u3000\u3000LeadingDigit \u4e09\u6001\u5e38\u6570\uff0c\u6307\u793a\u662f\u5426\u663e\u793a\u5c0f\u6570\u503c\u5c0f\u6570\u70b9\u524d\u9762\u7684\u96f6\u3002<br \/>\n\u3000\u3000EXAMPLE: <b>&lt;%=FormatCurrency(34.3456)%&gt;<\/b><br \/>\n\u3000\u3000RESULT: $34.35<\/p>\n<p><b>FormatDateTime()<\/b><br \/>\n\u3000\u3000FUNCTION: \u8fd4\u56de\u8868\u8fbe\u5f0f\uff0c\u6b64\u8868\u8fbe\u5f0f\u5df2\u88ab\u683c\u5f0f\u5316\u4e3a\u65e5\u671f\u6216\u65f6\u95f4<br \/>\n\u3000\u3000SYNTAX: FormatDateTime(Date, [, NamedFormat&gt;)<br \/>\n\u3000\u3000ARGUMENTS: NamedFormat \u6307\u793a\u6240\u4f7f\u7528\u7684\u65e5\u671f\/\u65f6\u95f4\u683c\u5f0f\u7684\u6570\u503c\uff0c\u5982\u679c\u7701\u7565\uff0c\u5219\u4f7f\u7528 vbGeneralDate.<br \/>\n\u3000\u3000EXAMPLE: <b>&lt;%=FormatDateTime(&quot;08\/4\/99&quot;, vbLongDate)%&gt;<\/b><br \/>\n\u3000\u3000RESULT: Wednesday, August 04, 1999<\/p>\n<p><b>FormatNumber()<\/b><br \/>\n\u3000\u3000FUNCTION: \u8fd4\u56de\u8868\u8fbe\u5f0f\uff0c\u6b64\u8868\u8fbe\u5f0f\u5df2\u88ab\u683c\u5f0f\u5316\u4e3a\u6570\u503c.<br \/>\n\u3000\u3000SYNTAX: FormatNumber(Expression [, Digit [, LeadingDigit [, Paren [, GroupDigit&gt;&gt;&gt;&gt;)<br \/>\n\u3000\u3000ARGUMENTS: Digit \u6307\u793a\u5c0f\u6570\u70b9\u53f3\u4fa7\u663e\u793a\u4f4d\u6570\u7684\u6570\u503c\u3002\u9ed8\u8ba4\u503c\u4e3a -1\uff0c\u6307\u793a\u4f7f\u7528\u7684\u662f\u8ba1\u7b97\u673a\u7684\u533a\u57df\u8bbe\u7f6e\u3002; LeadingDigit i\u6307\u793a\u5c0f\u6570\u70b9\u53f3\u4fa7\u663e\u793a\u4f4d\u6570\u7684\u6570\u503c\u3002\u9ed8\u8ba4\u503c\u4e3a -1\uff0c\u6307\u793a\u4f7f\u7528\u7684\u662f\u8ba1\u7b97\u673a\u7684\u533a\u57df\u8bbe\u7f6e\u3002; Paren \u6307\u793a\u5c0f\u6570\u70b9\u53f3\u4fa7\u663e\u793a\u4f4d\u6570\u7684\u6570\u503c\u3002\u9ed8\u8ba4\u503c\u4e3a -1\uff0c\u6307\u793a\u4f7f\u7528\u7684\u662f\u8ba1\u7b97\u673a\u7684\u533a\u57df\u8bbe\u7f6e\u3002; GroupDigit i\u6307\u793a\u5c0f\u6570\u70b9\u53f3\u4fa7\u663e\u793a\u4f4d\u6570\u7684\u6570\u503c\u3002\u9ed8\u8ba4\u503c\u4e3a -1\uff0c\u6307\u793a\u4f7f\u7528\u7684\u662f\u8ba1\u7b97\u673a\u7684\u533a\u57df\u8bbe\u7f6e\u3002.<br \/>\n\u3000\u3000EXAMPLE: <b>&lt;%=FormatNumber(45.324567, 3)%&gt;<\/b><br \/>\n\u3000\u3000RESULT: 45.325<\/p>\n<p><b>FormatPercent()<\/b><br \/>\n\u3000\u3000FUNCTION: \u8fd4\u56de\u8868\u8fbe\u5f0f\uff0c\u6b64\u8868\u8fbe\u5f0f\u5df2\u88ab\u683c\u5f0f\u5316\u4e3a\u5c3e\u968f\u6709 % \u7b26\u53f7\u7684\u767e\u5206\u6bd4\uff08\u4e58\u4ee5 100 \uff09\u3002 (%)<br \/>\n\u3000\u3000SYNTAX: FormatPercent(Expression [, Digit [, LeadingDigit [, Paren [, GroupDigit&gt;&gt;&gt;&gt;)<br \/>\n\u3000\u3000ARGUMENTS: \u540c\u4e0a.<br \/>\n\u3000\u3000EXAMPLE: <b>&lt;%=FormatPercent(0.45267, 3)%&gt;<\/b><br \/>\n\u3000\u3000RESULT: 45.267%<\/p>\n<p><b>Hour()<\/b><br \/>\n\u3000\u3000FUNCTION: \u4ee524\u65f6\u8fd4\u56de\u5c0f\u65f6\u6570.<br \/>\n\u3000\u3000SYNTAX: Hour(time)<br \/>\n\u3000\u3000ARGUMENTS:<br \/>\n\u3000\u3000EXAMPLE: <b>&lt;%=Hour(#4:45:34 PM#)%&gt;<\/b><br \/>\n\u3000\u3000RESULT: 16<br \/>\n\u3000\u3000(Hour has been converted to 24-hour system)<\/p>\n<p><b>Instr()<\/b><br \/>\n\u3000\u3000FUNCTION: \u8fd4\u56de\u5b57\u7b26\u6216\u5b57\u7b26\u4e32\u5728\u53e6\u4e00\u4e2a\u5b57\u7b26\u4e32\u4e2d\u7b2c\u4e00\u6b21\u51fa\u73b0\u7684\u4f4d\u7f6e.<br \/>\n\u3000\u3000SYNTAX: Instr([start, &gt; strToBeSearched, strSearchFor [, compare&gt;)<br \/>\n\u3000\u3000ARGUMENTS: Start\u4e3a\u641c\u7d22\u7684\u8d77\u59cb\u503c\uff0cstrToBeSearched\u63a5\u53d7\u641c\u7d22\u7684\u5b57\u7b26\u4e32 strSearchFor\u8981\u641c\u7d22\u7684\u5b57\u7b26compare \u6bd4\u8f83\u65b9\u5f0f\uff08\u8be6\u7ec6\u89c1ASP\u5e38\u6570\uff09<br \/>\n\u3000\u3000EXAMPLE: <b>&lt;%<br \/>\n\u3000\u3000strText = &quot;This is a test!!&quot;<br \/>\n\u3000\u3000pos = Instr(strText, &quot;a&quot;)<br \/>\n\u3000\u3000response.write pos<br \/>\n\u3000\u3000%&gt;<\/b><br \/>\n\u3000\u3000RESULT: 9<\/p>\n<p><b>InstrRev()<\/b><br \/>\n\u3000\u3000FUNCTION: \u540c\u4e0a\uff0c\u53ea\u662f\u4ece\u5b57\u7b26\u4e32\u7684\u6700\u540e\u4e00\u4e2a\u641c\u7d22\u8d77<br \/>\n\u3000\u3000SYNTAX: InstrRev([start, &gt; strToBeSearched, strSearchFor [, compare&gt;)<br \/>\n\u3000\u3000ARGUMENTS: \u540c\u4e0a.<br \/>\n\u3000\u3000EXAMPLE: <b>&lt;%<br \/>\n\u3000\u3000strText = &quot;This is a test!!&quot;<br \/>\n\u3000\u3000pos = InstrRev(strText, &quot;s&quot;)<br \/>\n\u3000\u3000response.write pos<br \/>\n\u3000\u3000%&gt;<\/b><br \/>\n\u3000\u3000RESULT: 13<\/p>\n<p>\n<b>Int()<\/b><br \/>\n\u3000\u3000FUNCTION: \u8fd4\u56de\u6570\u503c\u7c7b\u578b,\u4e0d\u56db\u820d\u4e94\u5165\u3002<br \/>\n\u3000\u3000SYNTAX: Int(number)<br \/>\n\u3000\u3000ARGUMENTS:<br \/>\n\u3000\u3000EXAMPLE: <b>&lt;%=INT(32.89)%&gt;<\/b><br \/>\n\u3000\u3000RESULT: 32<\/p>\n<p><b>IsArray()<\/b><br \/>\n\u3000\u3000FUNCTION: \u5224\u65ad\u4e00\u5bf9\u8c61\u662f\u5426\u4e3a\u6570\u7ec4\uff0c\u8fd4\u56de\u5e03\u5c14\u503c .<br \/>\n\u3000\u3000SYNTAX: IsArray(name)<br \/>\n\u3000\u3000ARGUMENTS:<br \/>\n\u3000\u3000EXAMPLE: <b>&lt;%<br \/>\n\u3000\u3000strTest = &quot;Test!&quot;<br \/>\n\u3000\u3000response.write IsArray(strTest)<br \/>\n\u3000\u3000%&gt;<\/b><br \/>\n\u3000\u3000RESULT: False<\/p>\n<p><b>IsDate()<\/b><br \/>\n\u3000\u3000FUNCTION: \u5224\u65ad\u4e00\u5bf9\u8c61\u662f\u5426\u4e3a\u65e5\u671f\uff0c\u8fd4\u56de\u5e03\u5c14\u503c<br \/>\n\u3000\u3000SYNTAX: IsDate(expression)<br \/>\n\u3000\u3000ARGUMENTS: expression is any valid expression.<br \/>\n\u3000\u3000EXAMPLE: <b>&lt;%<br \/>\n\u3000\u3000strTest = &quot;8\/4\/99&quot;<br \/>\n\u3000\u3000response.write IsDate(strTest)<br \/>\n\u3000\u3000%&gt;<\/b><br \/>\n\u3000\u3000RESULT: True<\/p>\n<p><b>IsEmpty()<\/b><br \/>\n\u3000\u3000FUNCTION: \u5224\u65ad\u4e00\u5bf9\u8c61\u662f\u5426\u521d\u59cb\u5316\uff0c\u8fd4\u56de\u5e03\u5c14\u503c.<br \/>\n\u3000\u3000SYNTAX: IsEmpty(expression)<br \/>\n\u3000\u3000ARGUMENTS:<br \/>\n\u3000\u3000EXAMPLE: <b>&lt;%<br \/>\n\u3000\u3000Dim i<br \/>\n\u3000\u3000response.write IsEmpty(i)<br \/>\n\u3000\u3000%&gt;<\/b><br \/>\n\u3000\u3000RESULT: True<\/p>\n<p><b>IsNull()<\/b><br \/>\n\u3000\u3000FUNCTION: \u5224\u65ad\u4e00\u5bf9\u8c61\u662f\u5426\u4e3a\u7a7a\uff0c\u8fd4\u56de\u5e03\u5c14\u503c.<br \/>\n\u3000\u3000SYNTAX: IsNull(expression)<br \/>\n\u3000\u3000ARGUMENTS:<br \/>\n\u3000\u3000EXAMPLE: <b>&lt;%<br \/>\n\u3000\u3000Dim i<br \/>\n\u3000\u3000response.write IsNull(i)<br \/>\n\u3000\u3000%&gt;<\/b><br \/>\n\u3000\u3000RESULT: False<br \/>\n\u3000\u3000<br \/>\n<b>IsNumeric()<\/b><br \/>\n\u3000\u3000FUNCTION: \u5224\u65ad\u4e00\u5bf9\u8c61\u662f\u5426\u4e3a\u6570\u5b57\uff0c\u8fd4\u56de\u5e03\u5c14\u503c.<br \/>\n\u3000\u3000SYNTAX: IsNumeric(expression)<br \/>\n\u3000\u3000ARGUMENTS:<br \/>\n\u3000\u3000EXAMPLE: <b>&lt;%<br \/>\n\u3000\u3000i = &quot;345&quot;<br \/>\n\u3000\u3000response.write IsNumeric(i)<br \/>\n\u3000\u3000%&gt;<\/b><br \/>\n\u3000\u3000RESULT: True<br \/>\n\u3000\u3000\u5c31\u7b97\u6570\u5b57\u52a0\u4e86\u5f15\u53f7\uff0cASP\u8fd8\u662f\u8ba4\u4e3a\u5b83\u662f\u6570\u5b57\u3002<\/p>\n<p><b>IsObject()<\/b><br \/>\n\u3000\u3000FUNCTION: \u5224\u65ad\u4e00\u5bf9\u8c61\u662f\u5426\u4e3a\u5bf9\u8c61\uff0c\u8fd4\u56de\u5e03\u5c14\u503c.<br \/>\n\u3000\u3000SYNTAX: IsObject(expression)<br \/>\n\u3000\u3000ARGUMENTS:<br \/>\n\u3000\u3000EXAMPLE: <b>&lt;%<br \/>\n\u3000\u3000Set con = Server.CreateObject(&quot;ADODB.Connection&quot;)<br \/>\n\u3000\u3000response.write IsObject(con)<br \/>\n\u3000\u3000%&gt;<\/b><br \/>\n\u3000\u3000RESULT: True<\/p>\n<p>\n<b>LBound()<\/b><br \/>\n\u3000\u3000FUNCTION: \u8fd4\u56de\u6307\u5b9a\u6570\u7ec4\u7ef4\u7684\u6700\u5c0f\u53ef\u7528\u4e0b\u6807.<br \/>\n\u3000\u3000SYNTAX: Lbound(arrayname [, dimension&gt;)<br \/>\n\u3000\u3000ARGUMENTS: dimension \u6307\u660e\u8981\u8fd4\u56de\u54ea\u4e00\u7ef4\u4e0b\u754c\u7684\u6574\u6570\u3002\u4f7f\u7528 1 \u8868\u793a\u7b2c\u4e00\u7ef4\uff0c2 \u8868\u793a\u7b2c\u4e8c\u7ef4\uff0c\u4ee5\u6b64\u7c7b\u3000\u3000\u63a8\u3002\u5982\u679c\u7701\u7565 dimension \u53c2\u6570\uff0c\u9ed8\u8ba4\u503c\u4e3a 1.<br \/>\n\u3000\u3000EXAMPLE: <b>&lt;%<br \/>\n\u3000\u3000i = Array(&quot;Monday&quot;,&quot;Tuesday&quot;,&quot;Wednesday&quot;)<br \/>\n\u3000\u3000response.write LBound(i)<br \/>\n\u3000\u3000%&gt;<\/b><br \/>\n\u3000\u3000RESULT: 0<\/p>\n<p><b>LCase()<\/b><br \/>\n\u3000\u3000FUNCTION: \u8fd4\u56de\u5b57\u7b26\u4e32\u7684\u5c0f\u5199\u5f62\u5f0f<br \/>\n\u3000\u3000SYNTAX: Lcase(string)<br \/>\n\u3000\u3000ARGUMENTS: string is any valid string expression.<br \/>\n\u3000\u3000EXAMPLE: <b>&lt;%<br \/>\n\u3000\u3000strTest = &quot;This is a test!&quot;<br \/>\n\u3000\u3000response.write LCase(strTest)<br \/>\n\u3000\u3000%&gt;<\/b><br \/>\n\u3000\u3000RESULT: this is a test!<\/p>\n<p><b>Left()<\/b><br \/>\n\u3000\u3000FUNCTION: \u8fd4\u56de\u5b57\u7b26\u4e32\u5de6\u8fb9\u7b2clength\u4e2a\u5b57\u7b26\u4ee5\u524d\u7684\u5b57\u7b26\uff08\u542b\u7b2clength\u4e2a\u5b57\u7b26).<br \/>\n\u3000\u3000SYNTAX: Left(string, length)<br \/>\n\u3000\u3000ARGUMENTS:<br \/>\n\u3000\u3000EXAMPLE: <b>&lt;%<br \/>\n\u3000\u3000strTest = &quot;This is a test!&quot;<br \/>\n\u3000\u3000response.write Left(strTest, 3)<br \/>\n\u3000\u3000%&gt;<\/b><br \/>\n\u3000\u3000RESULT: Thi<\/p>\n<p><b>Len()<\/b><br \/>\n\u3000\u3000FUNCTION: \u8fd4\u56de\u5b57\u7b26\u4e32\u7684\u957f\u5ea6.<br \/>\n\u3000\u3000SYNTAX: Len(string | varName)<br \/>\n\u3000\u3000ARGUMENTS:<br \/>\n\u3000\u3000EXAMPLE: <b>&lt;%<br \/>\n\u3000\u3000strTest = &quot;This is a test!&quot;<br \/>\n\u3000\u3000response.write Len(strTest)<br \/>\n\u3000\u3000%&gt;<\/b><br \/>\n\u3000\u3000RESULT: 15<\/p>\n<p><b>LTrim()<\/b><br \/>\n\u3000\u3000FUNCTION: \u53bb\u6389\u5b57\u7b26\u4e32\u5de6\u8fb9\u7684\u7a7a\u683c.<br \/>\n\u3000\u3000SYNTAX: LTrim(string)<br \/>\n\u3000\u3000ARGUMENTS:<br \/>\n\u3000\u3000EXAMPLE: <b>&lt;%<br \/>\n\u3000\u3000strTest = &quot; This is a test!&quot;<br \/>\n\u3000\u3000response.write LTrim(strTest)<br \/>\n\u3000\u3000%&gt;<\/b><br \/>\n\u3000\u3000RESULT: This is a test!<\/p>\n<p><b>Mid()<\/b><br \/>\n\u3000\u3000FUNCTION: \u8fd4\u56de\u7279\u5b9a\u957f\u5ea6\u7684\u5b57\u7b26\u4e32(\u4ecestart\u5f00\u59cb,\u957f\u5ea6\u4e3alength).<br \/>\n\u3000\u3000SYNTAX: Mid(string, start [, length&gt;)<br \/>\n\u3000\u3000ARGUMENTS:<br \/>\n\u3000\u3000EXAMPLE: <b>&lt;%<br \/>\n\u3000\u3000strTest = &quot;This is a test! Today is Monday.&quot;<br \/>\n\u3000\u3000response.write Mid(strTest, 17, 5)<br \/>\n\u3000\u3000%&gt;<\/b><br \/>\n\u3000\u3000RESULT: Today<\/p>\n<p><b>Minute()<\/b><br \/>\n\u3000\u3000FUNCTION: \u8fd4\u56de\u65f6\u95f4\u7684\u5206\u948f.<br \/>\n\u3000\u3000SYNTAX: Minute(time)<br \/>\n\u3000\u3000ARGUMENTS:<br \/>\n\u3000\u3000EXAMPLE: <b>&lt;%=Minute(#12:45:32 PM#)%&gt;<\/b><br \/>\n\u3000\u3000RESULT: 45<\/p>\n<p><b>Month()<\/b><br \/>\n\u3000\u3000FUNCTION: \u8fd4\u56de\u65e5\u671f.<br \/>\n\u3000\u3000SYNTAX: Month(date)<br \/>\n\u3000\u3000ARGUMENTS: date is any valid date expression.<br \/>\n\u3000\u3000EXAMPLE: <b>&lt;%=Month(#08\/04\/99#)%&gt;<\/b><br \/>\n\u3000\u3000RESULT: 8<\/p>\n<p><b>MonthName()<\/b><br \/>\n\u3000\u3000FUNCTION: Returns a string identifying the specified month.<br \/>\n\u3000\u3000SYNTAX: MonthName(month, [, Abb&gt;)<br \/>\n\u3000\u3000ARGUMENTS: month is the numeric representation for a given month; Abb (optional) is a boolean value used to display month abbreviation. True will display the abbreviated month name and False (default) will not show the abbreviation.<br \/>\n\u3000\u3000EXAMPLE: <b>&lt;%=MonthName(Month(#08\/04\/99#))%&gt;<\/b><br \/>\n\u3000\u3000RESULT: August<\/p>\n<p><b>Now()<\/b><br \/>\n\u3000\u3000FUNCTION: Returns the current system date and time.<br \/>\n\u3000\u3000SYNTAX: Now()<br \/>\n\u3000\u3000ARGUMENTS: None<br \/>\n\u3000\u3000EXAMPLE: <b>&lt;%=Now%&gt;<\/b><br \/>\n\u3000\u3000RESULT: 8\/4\/99 9:30:16 AM<\/p>\n<p><b>Replace()<\/b><br \/>\n\u3000\u3000FUNCTION: Returns a string in which a specified sub-string has been replaced with another substring a specified number of times.<br \/>\n\u3000\u3000SYNTAX: Replace(strToBeSearched, strSearchFor, strReplaceWith [, start [, count [, compare&gt;&gt;&gt;)<br \/>\n\u3000\u3000ARGUMENTS: strToBeSearched is a string expression containing a sub-string to be replaced; strSearchFor is the string expression to search for within strToBeSearched; strReplaceWith is the string expression to replace sub-string strSearchFor; start (optional) is the numeric character position to begin search; count (optional) is a value indicating the comparision constant.<br \/>\n\u3000\u3000EXAMPLE: <b>&lt;%<br \/>\n\u3000\u3000strTest = &quot;This is an apple!&quot;<br \/>\n\u3000\u3000response.write Replace(strTest, &quot;apple&quot;, &quot;orange&quot;)<br \/>\n\u3000\u3000%&gt;<\/b><br \/>\n\u3000\u3000RESULT: This is an orange!<\/p>\n<p><b>Right()<\/b><br \/>\n\u3000\u3000FUNCTION: \u8fd4\u56de\u5b57\u7b26\u4e32\u53f3\u8fb9\u7b2clength\u4e2a\u5b57\u7b26\u4ee5\u524d\u7684\u5b57\u7b26\uff08\u542b\u7b2clength\u4e2a\u5b57\u7b26).<br \/>\n\u3000\u3000SYNTAX: Right(string, length)<br \/>\n\u3000\u3000ARGUMENTS: .<br \/>\n\u3000\u3000EXAMPLE: <b>&lt;%<br \/>\n\u3000\u3000strTest = &quot;This is an test!&quot;<br \/>\n\u3000\u3000response.write Right(strTest, 3)<br \/>\n\u3000\u3000%&gt;<\/b><br \/>\n\u3000\u3000RESULT: st!<\/p>\n<p><b>Rnd()<\/b><br \/>\n\u3000\u3000FUNCTION: \u4ea7\u751f\u4e00\u4e2a\u968f\u673a\u6570.<br \/>\n\u3000\u3000SYNTAX: Rnd [ (number) &gt;<br \/>\n\u3000\u3000ARGUMENTS:<br \/>\n\u3000\u3000EXAMPLE: <b>&lt;%<br \/>\n\u3000\u3000Randomize()<br \/>\n\u3000\u3000response.write RND()<br \/>\n\u3000\u3000%&gt;<\/b><br \/>\n\u3000\u3000RESULT: \u4efb\u4f55\u4e00\u4e2a\u57280 \u5230 1 \u4e4b\u95f4\u7684\u6570<\/p>\n<p><b>Round()<\/b><br \/>\n\u3000\u3000FUNCTION: \u8fd4\u56de\u6309\u6307\u5b9a\u4f4d\u6570\u8fdb\u884c\u56db\u820d\u4e94\u5165\u7684\u6570\u503c.<br \/>\n\u3000\u3000SYNTAX: Round(expression [, numRight&gt;)<br \/>\n\u3000\u3000ARGUMENTS: numRight\u6570\u5b57\u8868\u660e\u5c0f\u6570\u70b9\u53f3\u8fb9\u6709\u591a\u5c11\u4f4d\u8fdb\u884c\u56db\u820d\u4e94\u5165\u3002\u5982\u679c\u7701\u7565\uff0c\u5219 Round \u51fd\u6570\u8fd4\u56de\u6574\u6570.<br \/>\n\u3000\u3000EXAMPLE: <b>&lt;%<br \/>\n\u3000\u3000i = 32.45678<br \/>\n\u3000\u3000response.write Round(i)<br \/>\n\u3000\u3000%&gt;<\/b><br \/>\n\u3000\u3000RESULT: 32<\/p>\n<p><b>Rtrim()<\/b><br \/>\n\u3000\u3000FUNCTION: \u53bb\u6389\u5b57\u7b26\u4e32\u53f3\u8fb9\u7684\u5b57\u7b26\u4e32.<br \/>\n\u3000\u3000SYNTAX: Rtrim(string)<br \/>\n\u3000\u3000ARGUMENTS:<br \/>\n\u3000\u3000EXAMPLE: <b>&lt;%<br \/>\n\u3000\u3000strTest = &quot;This is a test!! &quot;<br \/>\n\u3000\u3000response.write RTrim(strTest)<br \/>\n\u3000\u3000%&gt;<\/b><br \/>\n\u3000\u3000RESULT: This is a test!!<\/p>\n<p><b>Second()<\/b><br \/>\n\u3000\u3000FUNCTION: \u8fd4\u56de\u79d2.<br \/>\n\u3000\u3000SYNTAX: Second(time)<br \/>\n\u3000\u3000ARGUMENTS: .<br \/>\n\u3000\u3000EXAMPLE: <b>&lt;%=Second(#12:34:28 PM#)%&gt;<\/b><br \/>\n\u3000\u3000RESULT: 28<\/p>\n<p><b>StrReverse()<\/b><br \/>\n\u3000\u3000FUNCTION: \u53cd\u6392\u4e00\u5b57\u7b26\u4e32<br \/>\n\u3000\u3000SYNTAX: StrReverse(string)<br \/>\n\u3000\u3000ARGUMENTS:<br \/>\n\u3000\u3000EXAMPLE: <b>&lt;%<br \/>\n\u3000\u3000strTest = &quot;This is a test!!&quot;<br \/>\n\u3000\u3000response.write StrReverse(strTest)<br \/>\n\u3000\u3000%&gt;<\/b><br \/>\n\u3000\u3000RESULT: !!tset a si sihT<\/p>\n<p><b>Time()<\/b><br \/>\n\u3000\u3000FUNCTION: \u8fd4\u56de\u7cfb\u7edf\u65f6\u95f4.<br \/>\n\u3000\u3000SYNTAX: Time()<br \/>\n\u3000\u3000ARGUMENTS: .<br \/>\n\u3000\u3000EXAMPLE: <b>&lt;%=Time%&gt;<\/b><br \/>\n\u3000\u3000RESULT: 9:58:28 AM<\/p>\n<p><b>Trim()<\/b><br \/>\n\u3000\u3000FUNCTION: \u53bb\u6389\u5b57\u7b26\u4e32\u5de6\u53f3\u7684\u7a7a\u683c.<br \/>\n\u3000\u3000SYNTAX: Trim(string)<br \/>\n\u3000\u3000ARGUMENTS: string is any valid string expression.<br \/>\n\u3000\u3000EXAMPLE: <b>&lt;%<br \/>\n\u3000\u3000strTest = &quot; This is a test!! &quot;<br \/>\n\u3000\u3000response.write Trim(strTest)<br \/>\n\u3000\u3000%&gt;<\/b><br \/>\n\u3000\u3000RESULT: This is a test!!<\/p>\n<p><b>UBound()<\/b><br \/>\n\u3000\u3000FUNCTION: \u8fd4\u56de\u6307\u5b9a\u6570\u7ec4\u7ef4\u6570\u7684\u6700\u5927\u53ef\u7528\u4e0b\u6807.<br \/>\n\u3000\u3000SYNTAX: Ubound(arrayname [, dimension&gt;)<br \/>\n\u3000\u3000ARGUMENTS: dimension (optional) \u6307\u5b9a\u8fd4\u56de\u54ea\u4e00\u7ef4\u4e0a\u754c\u7684\u6574\u6570\u30021 \u8868\u793a\u7b2c\u4e00\u7ef4\uff0c2 \u8868\u793a\u7b2c\u4e8c\u7ef4\uff0c\u4ee5\u6b64\u7c7b\u63a8\u3002\u5982\u679c\u7701\u7565 dimension \u53c2\u6570\uff0c\u5219\u9ed8\u8ba4\u503c\u4e3a 1.<br \/>\n\u3000\u3000EXAMPLE: <b>&lt;%<br \/>\n\u3000\u3000i = Array(&quot;Monday&quot;,&quot;Tuesday&quot;,&quot;Wednesday&quot;)<br \/>\n\u3000\u3000response.write UBound(i)<br \/>\n\u3000\u3000%&gt;<\/b><br \/>\n\u3000\u3000RESULT: 2<\/p>\n<p><b>UCase()<\/b><br \/>\n\u3000\u3000FUNCTION: \u8fd4\u56de\u5b57\u7b26\u4e32\u7684\u5927\u5199\u5f62\u5f0f.<br \/>\n\u3000\u3000SYNTAX: UCase(string)<br \/>\n\u3000\u3000ARGUMENTS:<br \/>\n\u3000\u3000EXAMPLE: <b>&lt;%<br \/>\n\u3000\u3000strTest = &quot;This is a test!!&quot;<br \/>\n\u3000\u3000response.write UCase(strTest)<br \/>\n\u3000\u3000%&gt;<\/b><br \/>\n\u3000\u3000RESULT: THIS IS A TEST!!<\/p>\n<p><b>VarType()<\/b><br \/>\n\u3000\u3000FUNCTION: \u8fd4\u56de\u6307\u793a\u53d8\u91cf\u5b50\u7c7b\u578b\u7684\u503c<br \/>\n\u3000\u3000SYNTAX: VarType(varName)<br \/>\n\u3000\u3000ARGUMENTS:<br \/>\n\u3000\u3000EXAMPLE: <b>&lt;%<br \/>\n\u3000\u3000i = 3<br \/>\n\u3000\u3000response.write varType(i)<br \/>\n\u3000\u3000%&gt;<\/b><br \/>\n\u3000\u3000RESULT: 2(\u6570\u5b57)\u8be6\u89c1&quot;asp\u5e38\u6570&quot;<\/p>\n<p><b>WeekDay()<\/b><br \/>\n\u3000\u3000FUNCTION: \u8fd4\u56de\u5728\u4e00\u5468\u7684\u7b2c\u51e0\u5929.<br \/>\n\u3000\u3000SYNTAX: WeekDay(date [, firstdayofweek&gt;)<br \/>\n\u3000\u3000ARGUMENTS: .<br \/>\n\u3000\u3000EXAMPLE: <b>&lt;%<br \/>\n\u3000\u3000d = #8\/4\/99#<br \/>\n\u3000\u3000response.write Weekday(d)<br \/>\n\u3000\u3000%&gt;<\/b><br \/>\n\u3000\u3000RESULT: 4(\u661f\u671f\u4e09)<\/p>\n<p><b>WeekDayName()<\/b><br \/>\n\u3000\u3000FUNCTION: \u8fd4\u56de\u4e00\u5468\u7b2c\u51e0\u5929\u7684\u540d\u5b57.<br \/>\n\u3000\u3000SYNTAX: WeekDayName(weekday [, Abb [, firstdayofweek&gt;&gt;)<br \/>\n\u3000\u3000ARGUMENTS: Abb\u53ef\u9009\u3002Boolean \u503c\uff0c\u6307\u660e\u662f\u5426\u7f29\u5199\u8868\u793a\u661f\u671f\u5404\u5929\u7684\u540d\u79f0\u3002\u5982\u679c\u7701\u7565\uff0c \u9ed8\u8ba4\u503c\u4e3a False\uff0c\u5373\u4e0d\u7f29\u5199\u661f\u671f\u5404\u5929\u7684\u540d\u79f0.firstdayofweek\u6307\u660e\u661f\u671f\u7b2c\u4e00\u5929\u7684\u6570\u503c<br \/>\n\u3000\u3000EXAMPLE: <b>&lt;%<br \/>\n\u3000\u3000d = #8\/4\/99#<br \/>\n\u3000\u3000response.write WeekdayName(Weekday(d))<br \/>\n\u3000\u3000%&gt;<\/b><br \/>\n\u3000\u3000RESULT: Wednesday<\/p>\n<p><b>Year()<\/b><br \/>\n\u3000\u3000FUNCTION: \u8fd4\u56de\u5f53\u524d\u7684\u5e74\u4efd.<br \/>\n\u3000\u3000SYNTAX: Year(date)<br \/>\n\u3000\u3000ARGUMENTS:<br \/>\n\u3000\u3000EXAMPLE: <b>&lt;%=Year(#8\/4\/99#)%&gt;<\/b><br \/>\n\u3000\u3000RESULT: 1999<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Array() \u3000\u3000FUNCTION: \u8fd4\u56de\u4e00\u4e2a\u6570\u7ec4 \u3000\u3000SYNTAX: Array(list) \u3000\u3000ARGUMENTS: \u5b57\u7b26\uff0c\u6570\u5b57\u5747\u53ef \u3000\u3000EXAMPLE: &lt;% \u3000\u3000Dim myArray() \u3000\u3000For i = 1 to 7 &#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"topic":[],"class_list":["post-212","post","type-post","status-publish","format-standard","hentry","category-technology"],"_links":{"self":[{"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/posts\/212","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/comments?post=212"}],"version-history":[{"count":1,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/posts\/212\/revisions"}],"predecessor-version":[{"id":66091,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/posts\/212\/revisions\/66091"}],"wp:attachment":[{"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/media?parent=212"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/categories?post=212"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/tags?post=212"},{"taxonomy":"topic","embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/topic?post=212"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}