
jsp页面中的window.location.href如何提交到action多个参数,
jsp页面中的window.location.href如何提交到action多个参数,functionchuan(){vardirection=document.getE...
jsp页面中的window.location.href如何提交到action多个参数,function chuan(){
var direction = document.getElementById("dirSelect").value;
var stage = document.getElementById("staSelect").value;
var subject = document.getElementById("subSelect").value;
var state = document.getElementById("state").value;
window.location.href="chaxun_Testpaper.action?p=1&stage="+stage;
} 展开
var direction = document.getElementById("dirSelect").value;
var stage = document.getElementById("staSelect").value;
var subject = document.getElementById("subSelect").value;
var state = document.getElementById("state").value;
window.location.href="chaxun_Testpaper.action?p=1&stage="+stage;
} 展开
展开全部
你写的不错呀,问号传参就可以,规则:
参数名与参数值之间使用=号,多个参数之间使用&连接符
参数名与参数值之间使用=号,多个参数之间使用&连接符
更多追问追答
追问
为什么传过去的汉字乱码呢
追答
问号传参,传中文的话会乱码是正常现象
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询