错误提示:>
Microsoft VBScript 运行时错误错误 '800a01f4'
变量未定义: 'tempname'
/index.asp,行18
代码:<%
if s="1" then
call tempname("wap/index.wml")
Elseif s="2" then
call tempname("3g/index.html")
Elseif s="3" then
call tempname("chuping/index.html")
end if
%>
请各位老师指点下
改为直接跳转试试
<%
if s=1 then
response.Redirect "wap/index.wml"
Elseif s=2 then
response.Redirect "3g/index.html"
Elseif s=3 then
response.Redirect "chuping/index.html"
end if
%>
<%
if s=1 then
response.Redirect "wap/index.wml"
Elseif s=2 then
response.Redirect "3g/index.html"
Elseif s=3 then
response.Redirect "chuping/index.html"
end if
%>
温馨提示:答案为网友推荐,仅供参考
第1个回答 2013-10-12
tempname应该是一个函数,但是你没有定义。或者这个页面没有引用相应的script
第2个回答 2013-10-12
你定义的函数tempname() 有问题吧