[color=red]通过更改form里的action和隐藏input的method值。[/color]
function send(){
document.getElementById("method").value="processSend";
var s = document.getElementById("method").value;
document.form1.action = "<%=contextpath %>/jsp/process/banli.do";
document.form1.submit();
}
本文介绍了一种通过修改HTML表单的action属性和使用隐藏input来改变表单提交方法的技术。具体实现方式为设置隐藏input的value值为特定字符串,并修改form的action指向处理程序。
2631

被折叠的 条评论
为什么被折叠?



