源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

Jquery:ajax实现翻页无刷新功能代码

  • 时间:2022-05-18 09:05 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:Jquery:ajax实现翻页无刷新功能代码
不多说,直接贴代码: 下面是js部分:
[url=<%=request.getContextPath()%>/activity_edit.action?id=]+"</tr>" $("#t_body").html(tbody_content); } }else{ $("#t_head").html(""); $("#t_body").html("<div style='height: 200px;width: 700px;padding-top: 100px;' align='center'>"+info.msg+"</div>"); } } //清空数据 function clearDate(){ $("#t_body").html(""); } //搜索活动 $("#searchActivity").click(function(){ queryForPages(); }); //首页 $("#firstPage").click(function(){ currentPage="1"; queryForPages(); }); //上一页 $("#previous").click(function(){ if(currentPage>1){ currentPage-- ; } queryForPages(); }); //下一页 $("#next").click(function(){ if(currentPage<totalPage){ currentPage++ ; } queryForPages(); }); //尾页 $("#last").click(function(){ currentPage = totalPage; queryForPages(); }); });
下面是html代码部分:
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部