今天遇到这么一个需求,携带一个编号一个名字跳转到另一个JSP页面,直接页面跳转(get携带数据)的话不太安全,于是想到到后台转发一下. 第一种:直接以表单提交方式的进行 JS代码: var form = $("<form action='"+contextPath+"/trainacontentType_forwardToAddTraincontent.action"+"' method='post'></form>")…
function exportExcel() { var merchantName = $('#merchantName').val(); var merchantNo = $('#merchantNo').val(); var orderNo = $('#orderNo').val(); var phone = $('#phone').val(); var orderStatus = $('#orderStatusCombobox').combobox('getValue'); var pai…
使用jquery.form.js官网现在地址表单插件来实现异步form表单提交. 先看看官方的介绍: /* Usage Note: ----------- Do not use both ajaxSubmit and ajaxForm on the same form. These functions are mutually exclusive. Use ajaxSubmit if you want to bind your own submit handler to the form. Fo…