文档库 最新最全的文档下载
当前位置:文档库 › 基于JQuery多关键字组合无刷新分页技术的实现

基于JQuery多关键字组合无刷新分页技术的实现

龙源期刊网 https://www.wendangku.net/doc/7411855120.html,

基于JQuery多关键字组合无刷新分页技术的实现

作者:孙仁鹏刘富国

来源:《软件工程》2017年第08期

摘要:有刷新分页需要回传整个页面,用户体验效果差。原生AJAX实现无刷新分页,

难度高,代码复杂,且有浏览器兼容和不便解析JSON数据问题。为了解决不足,提出使用JQuery实现无刷新分页。首先分析了有刷新和无刷新的工作原理,然后结合多关键字组合搜索,阐述分页的核心实现思路,同时利用JSON提升网络传输效率和简化数据解析,利用数据库端物理分页提高分页性能。实践表明,研究具有较好的实用价值。

关键词:JQuery;多关键字;无刷新;物理分页;JSON

中图分类号:TP311 文献标识码:A

Abstract:With refreshing paging techniques,the entire page needs to be posted back and the user experience is poor.Native AJAX implements non-refreshing paging with many problems,like high difficulty,complexity code,poor browser compatibility and inconvenience for parsing JSON data.In order to solve the problems,the paper proposes to achieve non-refreshing paging through JQuery.The operating principles of refreshing and non-refreshing are analyzed in the first place,and then the core implementation thoughts of paging are explained with the multi-keyword combination search.By adopting JSON,the network transmission efficiency is enhanced and the data analysis is simplified.The paging performance is improved through physical paging on the database.Practice has proved the high practical value of the scheme.

Keywords:JQuery;multi-keyword;non-refreshing;physical paging;JSON

1 引言(Introduction)

数据分页展示,是web编程常用的一项技术。有刷新分页会重新加载整个页面,用户体验较差;原生AJAX实现无刷新分页,解决了用户体验差的问题,但是存在代码量大、实现难度高、浏览器兼容和数据解析不便等问题[1-3]。在实际的企业应用中,还往往需要结合多关键字组合查询,利用json/xml等数据格式进行数据传输。所以,研究JQuery的AJAX分页实现,提高用户体验和提升分页性能,简化代码,显得尤为必要。

2 原理介绍(Principle introduction)

2.1 有刷新分页

相关文档