ASP文件的扩展名为.asp,其中可以包括HTML标记,文本和脚本语言,其脚本语言代码包含于”<%……%>”之间。
<% Option Explicit %>表示VBScript中的变量都要声明后才可使用,否则会出错。也可以不要。
文件包含:
<!--#include file=”mypage.inc”-->
<!--#include file=”mypage.asp”-->
<!--#include file=”mypage.txt”-->
条件语句(if….then end if, if….then….Else end if)
循环语句(for….next, for each….next, do while…..loop)
数学类函数:abs(), sqr(),rnd(随机数),round(四舍五入)...
字符串类函数:len(),left(),right(),mid(),strReverse(),split(),trim() ..
日期时间类函数:DateValue(),TimeValue(),Year(),Month,Day(),Hour(),Minute(),Second(),DateSerial(),TimeSerial(),Date(),Time(),Now(),DatePart(),DateAdd(),DateDiff()…
类型转换类函数:Cdate(),Cint(),Clng(),Cstr(),str(),Val(),Int(),Fix() ...
格式化类函数:FormatDateTime,FormatNumber,FormatPercent….
判断类函数:IsDate,IsEmpty,IsNull,IsNumeric,IsObject…
信息对话框函数:InputBox,MsgBox…
回复Comments
作者:
{commentrecontent}