用window.location.href跳转时传递两个值怎么写
<%
String a="123";
String c="234";
<script language=javascript>
window.location.href="b.asp?dr="+a+"drr="+c;
</script>
%>
这样写传过的值是dr=123drr=234
正确写法怎么写?谢谢
參考答案:缺少&符号:
我这有个例子:
<script language="javascript">
window.document.location.href="./admin_index.asp?UserName="&request("patientname")&"&patientnumber="&request("patientnumber");</script>
仔细对照一下:
应该为:
window.location.href="b.asp?dr="+a+"&drr="+c;