上一篇:ASP 系列函数大全(2) >>
ASP 系列函数大全(3)
返回结果: False
IsNumeric()
函数判断一对象是否为数字,返回布尔值.
表达式 IsNumeric(expression)
实例: <%
i = "345"
response.write IsNumeric(i)
%>
返回结果: True
就算数字加了引号,ASP还是认为它是数字。
IsObject()
函数判断一对象是否为对象,返回布尔值.
表达式 IsObject(expression)
实例: <%
Set con = Server.CreateObject("ADODB.Connection")
response.write IsObject(con)
%>
返回结果: True
LBound()
函数返回指定数组维的最小可用下标.
表达式 Lbound(arrayname [, dimension])
实例: <%
i = Array("Monday","Tuesday","Wednesday")
response.write LBound(i)
%>
返回结果: 0
LCase()
函数 返回字符串的小写形式
表达式 Lcase(string)
实例: <%
strTest = "This is a test!"
response.write LCase(strTest)
%>
返回结果: this is a test!
Left()
函数返回字符串左边第length个字符以前的字符(含第length个字符).
表达式 Left(string, length)
实例: <%
strTest = "This is a test!"
response.write Left(strTest, 3)
%>
返回结果: Thi
Len()
函数返回字符串的长度.
表达式 Len(string | varName)
实例: <%
strTest = "This is a test!"
response.write Len(strTest)
%>
返回结果: 15
LTrim()
函数去掉字符串左边的空格.
表达式 LTrim(string)
实例: <%
strTest = " This is a test!"
response.write LTrim(strTest)
%>
返回结果: This is a test!
Mid()
函数返回特定长度的字符串(从start开始,长度为length).
表达式 Mid(string, start [, length])
实例: <%
strTest = "This is a test! Today is Monday."
response.write Mid(strTest, 17, 5)
%>
返回结果: Today
Minute()
函数返回时间的分钟.
表达式 Minute(time)
实例: <%=Minute(#12:45:32 PM#)%>
返回结果: 45
Month()
函数返回日期.
表达式 Month(date)
实例: <%=Month(#08/04/99#)%>
返回结果: 8
MonthName()
函数返回指定月份
表达式 MonthName(month, [, Abb])
实例: <%=MonthName(Month(#08/04/99#))%>
返回结果: August
Now()
函数返回系统时间
表达式 Now()
实例: <%=Now%>
返回结果: 9/9/00 9:30:16 AM
Right()
函数返回字符串右边第length个字符以前的字符(含第length个字符).
表达式 Right(string, length)
实例: <%
strTest = "This is an test!"
response.write Right(strTest, 3)
%>
返回结果: st!
Rnd()
函数产生一个随机数.
表达式 Rnd [ (number) ]
实例: <%
Randomize()
下一篇:ASP 系列函数大全(4) >>
相关文章:
- · ASP网站漏洞解析及黑客入侵防范方法(1)
- · ASP网站漏洞解析及黑客入侵防范方法(2)
- · Carello Web 使 ASP 源码暴露(APP,缺陷)-ASP漏洞集
- · MS IIS server的ASP安全缺陷(MS,缺陷)-ASP漏洞集
- · 给你的FileSystemObject对象加把锁-ASP漏洞集
- · MS IIS虚拟主机ASP源码泄露(MS,缺陷)-ASP漏洞集
- · 通过asp入侵web server,窃取文件毁坏系统-ASP漏洞集
- · 通过asp入侵web server,窃取文件毁坏系统-ASP漏洞集
- · 用ASP实现网页保密的两种方法-ASP漏洞集
- · ASP进阶教程:给留言簿润下色
- · ASP进阶教程:数据库版本的留言簿
- · ASP进阶教程:留言簿自动发E-Mail
- · ASP:Hack & Anti-Hack
- · ASP实用函数库(2)
- · ASP实用函数库(3)
- · ASP实用函数库(4)
- · ASP实用函数库(5)
- · ASP实用函数库(6)
- · ASP实用函数库(7)
- · ASP实用函数库(8)
- · ASP实用函数库(9)
- · ASP实用函数库(10)
- · ASP:Hack & Anti-Hack
- · DataGrid 分页问题
- · 用Asp写个加密和解密的类(1)
- · 用Asp写个加密和解密的类(2)
- · asp判断函数一览及网页制作常用技(1)
- · asp判断函数一览及网页制作常用技(2)
- · 网页弹出窗口应用总结(2)
- · ASP:Cookie使用指南(1)
- · ASP.NET编程入门随想之宽容(1)
- · ASP.NET编程入门随想之宽容(2)
- · ASP.NET2.0中数据源控件之异步数据访问(1)
- · ASP.NET2.0中数据源控件之异步数据访问(2)
- · 中国地区三级联动下拉菜单代码和示例(1)
- · 中国地区三级联动下拉菜单代码和示例(2)
- · 一种“您无权查看该网页”的原因和解决方法
- · ASP.NET 揭秘 ASP.NET页面的结构
