手机
当前位置:查字典教程网 >编程开发 >ASP教程 >asp 特殊字符屏蔽代码
asp 特殊字符屏蔽代码
摘要:functionstrreplace(str)ifstr=""thenstrreplace=strelsestrreplace=replac...

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中COM组件中如何连接数据库的代码

asp实现批量录入数据的实现

asp 获取地址栏参数代码

一段ASP 伪静态代码

ASP实例教程:asp无限级显示分类代码

asp 常用函数用法

在asp中通过vbs类实现rsa加密与解密的代码

asp 中英文字符长度检测判断函数

asp 简单数据库连接类

asp之字符串操作函数

精品推荐
分类导航