亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

eclipse中分頁問題

eclipse中分頁問題

富國滬深 2018-07-30 06:10:48
這是后臺控制層的分頁代碼@RequestMapping("/findcustomer")//實現分頁查詢@ResponseBodypublic MyAjaxResult findCustomer(Integer adminId,String search,Integer currentPage,Integer pageSize){PageModel pageModel;try {pageModel = cusService.findList(adminId,search,currentPage,pageSize);return MyAjaxResult.success(pageModel);} catch (Exception e) {e.printStackTrace();return MyAjaxResult.fail_300("查詢失敗");} }怎樣在JSP頁面這段代碼實現分頁查詢getCustomerListAjax();//模糊查詢和查看全部function getCustomerListAjax(cur) {$.ajax({url:"${pageContext.request.contextPath}/loginAction/get_customerList",type:"post",data:$("#seachForm").serialize(),dataType:"json",success: function(data){if(data.code==200){console.log(data);$('#courseTypeWrap').html(template('courseTypeTest', data));}else{layer.open({title: '警告!', content: data.msg ,yes: function(index, layero){//按鈕【按鈕一】的回調window.location.href="${pageContext.request.contextPath}/loginAction/login"}});}}});}
查看完整描述

1 回答

?
蝴蝶不菲

TA貢獻1810條經驗 獲得超4個贊

是哪一部分不會,前端寫隱藏input存頁數,傳到后端根據每頁數據數量算出第a條數據到第幾b條數據,sql中limit a,b


查看完整回答
反對 回復 2018-08-31
  • 1 回答
  • 0 關注
  • 1868 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號