jquery实现分页效果,可外部调用
2018-01-30 16:08
453 查看
//分页 var page_courseList = function(shanxiang) { var __this = this; var __courselistUrl = '/Course/ajaxCourseList'; var __pagecourselistUrl = '/Course/ajaxCourseList'; courselist = function (contentTypeId, courseSearch,chapterId,pageIndex) {//评论翻页 if (pageIndex < 0) { $('.load-more').addClass('no-more'); return false; } $('#courseList').html(''); $('.load-more').html('正在加载...'); $.get(__courselistUrl, {contentTypeId: contentTypeId, courseSearch: courseSearch,chapterId:chapterId,pageIndex:pageIndex}, function (data) { var html=data.html; $('#courseList').html(html); if (data.nextPageIndex < 0) { $('.load-more').html('没有更多'); $('.load-more').addClass('no-more'); } else { $('.load-more').html('查看更多'); } $('.load-more').attr('pageIndex', data.nextPageIndex); courselist_learn.limitNum("maxSize",18); courselist_learn.limitNum("clsContent",80); }, 'json') }; pagecourselist = function (contentTypeId, courseSearch,chapterId,pageIndex) {//评论翻页 if (pageIndex < 0) { $('.load-more').addClass('no-more'); return false; } $('.load-more').html('正在加载...'); $.get(__pagecourselistUrl, {contentTypeId: contentTypeId, courseSearch: courseSearch,chapterId:chapterId,pageIndex:pageIndex}, function (data) { var html=data.html; $('#courseList').append(html); if (data.nextPageIndex < 0) { $('.load-more').html('没有更多'); $('.load-more').addClass('no-more'); } else { $('.load-more').html('查看更多'); } $('.load-more').attr('pageIndex', data.nextPageIndex); courselist_learn.limitNum("maxSize",18); courselist_learn.limitNum("clsContent",80); }, 'json') }; return __this; }(shanxiang);
相关文章推荐
- jQuery实现带有洗牌效果的动画分页实例
- jQuery教程 $()包装函数来实现数组元素分页效果
- jquery+json实现的搜索加分页效果
- JQuery插件实现相册效果(数据库调用图片)
- jquery+json实现分页效果
- jquery.page.js实现简单的分页效果
- JDBC调用mysql存储过程实现分页效果
- Flash中调用XML程序实现分页效果
- PHP+jQuery+Ajax实现分页效果 jPaginate插件的应用
- Nutz+jQuery esayUI Datagrid实现增删改查以及分页效果
- jquery自定义插件实现分页效果
- 用jquery实现分页效果
- jquery自定义插件来实现分页的效果
- PHP+jQuery+Ajax实现分页效果 jPaginate插件的应用
- jquery自定义插件实现分页效果
- 使用jQuery和Ajax请求实现分页效果
- jQuery教程 $()包装函数来实现数组元素分页效果
- jquery实现的伪分页效果代码
- jQuery实现的无刷新分页演示效果
- 使用jQuery和Ajax请求实现分页效果