表单异步提交
http://120.78.242.205:8082/dhome-cms/static/js/jquery.js http://120.78.242.205:8082/dhome-cms/static/js/jquery.form.js jq: function queryData(){ $("#searchForm").ajaxSubmit( { "beforeSend":function(){ loadShow("加载中"); }, "success" : function(data){ setTimeout(function(){ loadOk("加载成功"); $("#list").html(data); }, 300); setTimeout('loadHide()', 1000); }, "error" : function(result) { loadFail("加载失败"); setTimeout('loadHide()', 500); console.log('error:'+result); } }); }
html: <form action="${contextPath}/deposit/depositTable" name="searchForm" id="searchForm" class="form-inline" method="post"> <input type="hidden" id="currentPage" name="currentPage" value='1' /> <input type="hidden" id="pageSize" name="pageSize" value='10' /> </form>