js里面a.href
举个例子:
var username = "";
(中间给这个username赋值)
a.href = "aaaa.jsp?username="+username;
window.location.href = a.href;
以上可以跳转到下个页面,并传递username参数!!!
但是如果还有个参数是password:
var password = "";
(中间是赋值过程)
a.href = "aaaa.jsp?username="+username+"&password="+password;
是这样吗???
------解决方案--------------------