电脑知识与技术
電腦知識與技術
전뇌지식여기술
COMPUTER KNOWLEDGE AND TECHNOLOGY
2014年
3期
514-519
,共6页
分页组件%查询优化%分页框架%Spring框架
分頁組件%查詢優化%分頁框架%Spring框架
분혈조건%사순우화%분혈광가%Spring광가
page component%query optimization%paging framework%Spring framework
常见的分页组件存在一些不足,针对多条件组合过滤的分页查询业务场景提出了改进方案,在实现分页查询封装的同时给业务开发者提供足够的开发灵活性,并在Spring MVC开发框架的基础上实现了该分页组件,在视图层使用JQuery实现了一个与后台开发框架完全分离的分页页面组件,在后台使用泛型和桥接模式实现了分页查询的封装。应用结果表明该组件能够满足日常开发中的所有应用场景,且具有较好的移植性和稳定性。
常見的分頁組件存在一些不足,針對多條件組閤過濾的分頁查詢業務場景提齣瞭改進方案,在實現分頁查詢封裝的同時給業務開髮者提供足夠的開髮靈活性,併在Spring MVC開髮框架的基礎上實現瞭該分頁組件,在視圖層使用JQuery實現瞭一箇與後檯開髮框架完全分離的分頁頁麵組件,在後檯使用汎型和橋接模式實現瞭分頁查詢的封裝。應用結果錶明該組件能夠滿足日常開髮中的所有應用場景,且具有較好的移植性和穩定性。
상견적분혈조건존재일사불족,침대다조건조합과려적분혈사순업무장경제출료개진방안,재실현분혈사순봉장적동시급업무개발자제공족구적개발령활성,병재Spring MVC개발광가적기출상실현료해분혈조건,재시도층사용JQuery실현료일개여후태개발광가완전분리적분혈혈면조건,재후태사용범형화교접모식실현료분혈사순적봉장。응용결과표명해조건능구만족일상개발중적소유응용장경,차구유교호적이식성화은정성。
The common problems in contemporary Web paging designs are discussed in the article. According to the multi-con-dition query business scenarios, an improved paging design, which realizes the encapsulation of paging query and gives enough de-velopment flexibility for developers to programme, is proposed. The implementation included a paging page component com-pletely separated from the third party development framework using JQeruy in the view layer, and the encapsulation of query us-ing the technology of Generic and Bridge pattern. The practice shows that the page component can meet all application scenarios of daily in the development, and has good portability and stability.