📄 replace.asp
字号:
<%
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -