首页 > 代码库 > form不提交问题

form不提交问题

var confirmOrderForm=document.getElementById("confirmOrderForm");
var url="${pageContext.request.contextPath }/confirmOrder/confirmOrder.action?team=aa";
alert(url);
confirmOrderForm.action=url;

confirmOrderForm.submit();


怎么搞到了action里team都未空啊。郁闷好久,才发现<form id="confirmOrderForm">忘添加method="post"