replace.asp
来自「嘉缘人才6.0精简 ,很好用的人才系统」· ASP 代码 · 共 37 行
ASP
37 行
<%
function CheckStr(str)
if str<>"" and not isnull(str) then
CheckStr=replace(str,"'","'")
CheckStr=replace(CheckStr, ">", ">")
CheckStr=replace(CheckStr, "<", "<")
CheckStr=replace(CheckStr, " ", " ")
end if
end function
function CheckStrbox(str)
if str<>"" and not isnull(str) then
CheckStrbox=replace(str,"'","'")
CheckStrbox=replace(CheckStrbox, ">", ">")
CheckStrbox=replace(CheckStrbox, "<", "<")
CheckStrbox=replace(CheckStrbox, " ", " ")
CheckStrbox=replace(CheckStrbox, chr(13), "<br>")
end if
end function
function ChangeStrbox(str)
if str<>"" and not isnull(str) then
ChangeStrbox=replace(str,"<br>" ,chr(13))
end if
end function
function lenmix(checkstr)
lenTotal = 0
for i=1 to Len(checkstr)
strWord = mid(checkstr,i,1)
if asc(strWord) < 0 or asc(strWord) > 127 then
lenTotal = lenTotal + 2
else
lenTotal = lenTotal + 1
end if
next
lenmix = lentotal
end function
%>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?