这样的变量怎么引用,在线等!

chinabh 2004-08-05 08:54:53
具体代码是这样的
<%
a="abcd.asp"
%>
<script language="vbscript">
top.location.href= 就是这里怎么引用上面的变量a
</script>
...全文
83 6 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
chinabh 2004-08-06
  • 打赏
  • 举报
回复
我试过了,用单引号无法正确传值,用双引号可以解决!
beyond170 2004-08-05
  • 打赏
  • 举报
回复
= '<%=a%>';
forwhj 2004-08-05
  • 打赏
  • 举报
回复
同意楼上
zorou_fatal 2004-08-05
  • 打赏
  • 举报
回复
<%a="abcd.asp"%>
<script language="vbscript">

top.location.href= '<%=a%>';

</script>

stefli 2004-08-05
  • 打赏
  • 举报
回复
<%=a%>
wsdzmhongm 2004-08-05
  • 打赏
  • 举报
回复
top.location.href="xx.asp?a=<%=a%>"

28,409

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧