ASP多參數傳遞

mafengcf 2007-10-15 08:07:25
window.open"../voiture/POP_PrtOil.asp?Dept_name="&Dept_name&"&Begin_time="&Begin_time&"&Beover_time="&Beover_time,
"flag","width=1000,height=700,left=5,top=5,location=1,fullscreen=0,menubar=1,toolbar=1,status=1,resizable=0,scrollbars=1"
個位大蝦,window.open協帶參數錯在那
...全文
204 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
mafengcf 2007-10-15
  • 打赏
  • 举报
回复
還是不行
mafengcf 2007-10-15
  • 打赏
  • 举报
回复
<script language="javascript">
function writeprinte(Dept_name,Begin_time,Beover_time)
{
window.open ("../voiture/POP_PrtOil.asp?Dept_name="+Dept_name+"&Begin_time="+Begin_time+"&Beover_time="+Beover_time,"flag","width=1000,height=700,left=5,top=5,location=1,fullscreen=0,menubar=0,toolbar=0,status=0,resizable=0,scrollbars=1");
}
</script>
mafengcf 2007-10-15
  • 打赏
  • 举报
回复
window.open vbsript也可以,我帶兩個參數沒有錯,但帶三個就有錯了.
toury 2007-10-15
  • 打赏
  • 举报
回复
Dept_name、Begin_time、Beover_time参数从哪里得到的?
如果是从客户端脚本取得,按楼上两位答案;如果是从服务器端得到:

<script>
window.open("../voiture/POP_PrtOil.asp?POP_PrtOil.asp?Dept_name=<%=Dept_name%>&Begin_time=<% =Begin_time%>&Beover_time=<%=Beover_time%>,
"flag","width=1000,height=700,left=5,top=5,location=1,fullscreen=0,menubar=1,toolbar=1,status=1,resizable=0,scrollbars=1")
</script>
Go 旅城通票 2007-10-15
  • 打赏
  • 举报
回复
window.open("../voiture/POP_PrtOil.asp?Dept_name="+Dept_name+"&Begin_time="+Begin_time+"&Beover_time="+Beover_time,
"flag","width=1000,height=700,left=5,top=5,location=1,fullscreen=0,menubar=1,toolbar=1,status=1,resizable=0,scrollbars=1")

& ===> +
少了()
gray820928 2007-10-15
  • 打赏
  • 举报
回复
window.open "../voiture/POP_PrtOil.asp?Dept_name="+Dept_name+"&Begin_time="+Begin_time+"&Beover_time="&Beover_time,
"flag","width=1000,height=700,left=5,top=5,location=1,fullscreen=0,menubar=1,toolbar=1,status=1,resizable=0,scrollbars=1"
window.open是js的方法,连接用+不用&

28,391

社区成员

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

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