正文

VBScript(ASP)常用的函数和语句2007-03-13 14:05:00

【评论】 【打印】 【字体: 】 本文链接:http://blog.pfan.cn/otot/23932.html

分享到:

 ABS(<number>)  Array()  Asc(<string>)  Atn(<number>)  Cbool(<expression>)  Cbyte(<expression>)  Cdate(<date>)  CdBl(<expression>)  Chr(<charactercode>)  CInt(<expression>)  Clng(<expression>)  Cos(<number>)  CreateObject(<class>)  Csng(<expression>)  Cstr(<expression>)  Date  DateAdd(<interval>,<number>,<date>)  DateDiff(<interval>,<date1>,<date2>)  DatePart(<interval>,<date>)  DateSerial(<Year>,<Month>,<Day>)  DateValue(<date>)  Day(<date>)  Exp(<number>)  Filter(<inputstrings>,<value>)  Fix(<number>)  FormatCurrency(<number>)  FormatDateTime(<date>,<format>)  FormatNumber(<number>,<format>)  FormatPercent(<expression>)  Function {function name})  MyVar = Hex (<number>)  MyHour = Hour(Time)   If  Result = <Expression1> Imp <Expression2> Input = Inputbox ("Some text")  MyPos = Instr(4,searchstring,searchchar,1)  Int (<number>)  MyVar = IsDate(<date>)  Join (<Array>)  Lbound(ArrayName)  Lcase (String)  MyString = Left(<string>,<length>)  LengthVar = Len (String)  LoadPicture(<picturename>)  Log (<Number>)  Ltrim (<String>)  MyVar = Mid(<string>,<start>,<lenght>)  MyMinute = Minute(Now)  Var = <number1> Mod <Number2>  MyMonth = Month(Now)   MyMonthName = MonthName(<monthNumber>,true)  MyVar = MsgBox ("Hello World!", 65, "MsgBox Example")  Result = Not <Expression>  Oct (<Number>)On Error Resume Next  Option Explicit  Result = <Expression1> Or <Expression2> {object}.clear  {object}.Raise(number, source, description, helpfile, helpcontext)   Server.CreateObject(" <object here>") {var} = CreateObject("Scripting.Dictionary") {var} = CreateObject("Scripting.FileSystemObject") Rem 12345  <!--54321 --> <!-- #include file=" {filename.ext} " -->response.write" <your text here> " Response.end <% response.buffer =  true %><% response.buffer =  false %> Server.Scripttimeout(<variable here>) Server.mappath(" <filepath>") Server.htmlencode(<your variable here>  Server.CreateObject("Scripting.FileSystemObject")   显示服务器的一些参数: <%response.write ("Content_length = ")response.write (request.servervariables("Content_length"))response.write ("<br>Content_type =")response.write (request.servervariables("Content_type"))response.write ("<br>http_accept =")response.write (request.servervariables("http_accept"))response.write ("<br>http_accept_language =")response.write (request.servervariables("http_accept_language"))response.write ("<br>http_connection =")response.write (request.servervariables("http_connection"))response.write ("<br>http_host =")response.write (request.servervariables("http_host"))response.write ("<br>http_pragma =")response.write (request.servervariables("http_pragma"))response.write ("<br>http_ua_pixels =")response.write (request.servervariables("http_ua_pixels"))response.write ("<br>http_ua_color =")response.write (request.servervariables("http_ua_color"))response.write ("<br>http_ua_cpu =")response.write (request.servervariables("http_ua_cpu"))response.write ("<br>http_user_agen =t")response.write (request.servervariables("http_user_agent"))response.write ("<br>http_cookie =")response.write (request.servervariables("http_cookie ="))response.write ("<br>VBSunday =") response.write ( VBSunday  ) response.write ("<br>VBMonday =") response.write ( VBMonday  )response.write ("<br>VBShortDate =") response.write ( VBShortDate )response.write ("<br>VBLongDate =")response.write ( VBLongDate )response.write ("<br> =VBShortTime")response.write ( VBShortTime )response.write ("<br>VBShortTime =")response.write (  VBShortTime )response.write ("<br>VBLongTime =")response.write (  VBLongTime )response.write ("<br>VBGeneralDate =")response.write (  VBGeneralDate ) %>  

阅读(4070) | 评论(0)


版权声明:编程爱好者网站为此博客服务提供商,如本文牵涉到版权问题,编程爱好者网站不承担相关责任,如有版权问题请直接与本文作者联系解决。谢谢!

评论

暂无评论
您需要登录后才能评论,请 登录 或者 注册