<SCRIPT type='text/javascript'> function firstpage(){ var theform=document.getElementById('fmcc'); theform.action=theform.action+'?curpage=2'; theform.submit(); } </SCRIPT>
?用这种方式在action后面添加参数,可以提交,但在问号后添加的参数不能传递,前台地址栏为:
http://localhost:8080/pageTest/lpm/step.action?? 没有带上参数
二、
?
<SCRIPT type='text/javascript'> function firstpage(){ var theform=document.getElementById('fmcc'); theform.action=theform.action+'?curpage=2'; document.location.href=theform.action; } </SCRIPT>
?用这种方式可以传递成功,前台地址栏位:
http://localhost:8080/pageTest/lpm/step.action?curpage=2?有带上参数