最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
asp 特殊字符屏蔽代码
时间:2009-09-16 编辑:简简单单 来源:一聚教程网
asp 特殊字符屏蔽代码
function strreplace(str)
if str = "" then
strreplace = str
else
strreplace = replace(str,"'","''")
end if
end function
检测数字函数
function check_num(str)
dim i
For i = 1 To Len(str)
if Asc(Mid(str, i, 1)) < 48 or Asc(Mid(str, i, 1)) > 57 then
check_num=false
exit function
else
check_num=true
end if
Next
end function
function cutstr(str,strlen,more,url)
if len(str)>strlen then
str=left(str,strlen) & "......"
End if
if (len(str)>strlen) and more then
str=str+" [url="+url+"]点这里查看详情[/url]"
End if
cutstr=str
End function
-
上一个: asp完整登陆代码
-
下一个: asp 中英文字符长度检测判断函数
相关文章
- ASP Replace 字符替换详解 12-10
- VBS 批量Ping的项目讲解 09-19
- 如何封装一个Ajax函数介绍 09-16
- ASP实现加法验证码方法 09-16
- ASP错误捕获的几种常规处理方法介绍 09-16
- ajax实现城市三级联动的代码介绍 09-16