with提交表单,不能用get方式

来源:互联网 发布:sqlserver数据库脱机 编辑:程序博客网 时间:2024/05/22 01:55
在IE8环境下,以下的表单用get方式提交方式,出错了./** * 查询 按钮相应函数的调用函数 */function query() {with(window.document.getElementById("flowCardForm")) {action = "${pageContext.request.contextPath}/servlet/FlowCardServlet?command=${query}";method = "get";submit();}}改用post方式提交,就可以了./** * 查询 按钮相应函数的调用函数 */function query() {with(window.document.getElementById("flowCardForm")) {action = "${pageContext.request.contextPath}/servlet/FlowCardServlet?command=${query}";method = "post";submit();}}

 
原创粉丝点击