如何在js中,把带参数的url 复制给struts form中的action
代码如下:varurl="<%=request.getContextPath()%>/cmdparam.do?op=modifyinfosave";url+="¶...
代码如下:
var url = "<%=request.getContextPath()%>/cmdparam.do?op=modifyinfosave";
url +="¶m="+ <%=request.getParameter("param")%>;
document.cmdparamForm.action.value = url;
alert(document.cmdparamForm.action.value);
document.cmdparamForm.submit();
显示 document.cmdparamForm.action.value 为 undefinded 无法为action赋值,这句该怎么改啊?? 展开
var url = "<%=request.getContextPath()%>/cmdparam.do?op=modifyinfosave";
url +="¶m="+ <%=request.getParameter("param")%>;
document.cmdparamForm.action.value = url;
alert(document.cmdparamForm.action.value);
document.cmdparamForm.submit();
显示 document.cmdparamForm.action.value 为 undefinded 无法为action赋值,这句该怎么改啊?? 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询