//构建post方式提交
var form = document.createElement("form");
form.action = "conditionSearch.action";
form.method = "POST";
form.style.display = "none";
//构建input并附加参数
//查询条件
var conditionText = document.createElement("input");
conditionText.setAttribute("name", "${name}");
conditionText.setAttribute("type", "text");
conditionText.value="${value}";
form.appendChild(conditionText);
document.body.appendChild(form);
form.submit();
js构建form进行post提交,布布扣,bubuko.com
原文:http://www.cnblogs.com/xuyadong/p/3848726.html