asp如何变量未定义

错误提示:>
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
%>
温馨提示:答案为网友推荐,仅供参考
第1个回答  2013-10-12
tempname应该是一个函数,但是你没有定义。或者这个页面没有引用相应的script
第2个回答  2013-10-12
你定义的函数tempname() 有问题吧

相关了解……

你可能感兴趣的内容

大家正在搜

本站内容来自于网友发表,不代表本站立场,仅表示其个人看法,不对其真实性、正确性、有效性作任何的担保
相关事宜请发邮件给我们
© 非常风气网