无效使用 Null: 'replace',什么问题?

来源:百度知道 编辑:UC知道 时间:2024/05/16 10:02:49
<%
if session("nyeee_qyuid")="" then
conn.close
set conn=nothing
response.write "<Script>window.alert('您目前还没有登录,请先登录!');location.replace('qylogin.asp');</Script>"
else
function htmldecode(str)
htmldecode=replace(replace(str,"<br>",chr(13)),"","")
end function

可这一句又出现了这样的情况呀

<%
if session("nyeee_qyuid")="" then
conn.close
set conn=nothing
response.write "<Script>window.alert('您目前还没有登录,请先登录!');location.href='qylogin.asp';</Script>"
else

location.href=\"qylogin.asp\"