angularjs ajax分页,GitHub - DISMALS/AngularJs-UI: AngularJs Pagination Angularjs分页 -- Want to be the b...

AngularJs Pagination -- Want to be the best Pagination

Since name for a pagination is boring, so I decide name it to tm.I'm not good at English, wish you you catch what I said And help me improve my English.

tm.pagination -- A very simple and useful pagination in AngularJs

relate blog articles:

default:

687474703a2f2f7777772e6d69616f7975657975652e636f6d2f77702d636f6e74656e742f75706c6f6164732f323031342f30382f39613834393563386636343164613039396665663631373561636566623564392e706e67

with some css and template change you can turn it to this

687474703a2f2f7777772e6d69616f7975657975652e636f6d2f77702d636f6e74656e742f75706c6f6164732f323031342f30382f66313262623239383733333061383565626265356533343230666539633737332e706e67

// in the view

// in the controller

$scope.paginationConf = {

currentPage: 1,

totalItems: 8000,

itemsPerPage: 15,

pagesLength: 15,

perPageOptions: [10, 20, 30, 40, 50],

onChange: function(){

}

};

conf is a object, it has attributes like below:

currentPage: Current page number, default 1

totalItems: Total number of items in all pages

itemsPerPage: number of items per page, default 15

onChange: when the pagination is change, it will excute the function

pagesLength: number for pagination size, default 9

perPageOptions: define select how many items in a page, default [10, 15, 20, 30, 50]

if you want to use with ajax,you may follow like this:

$scope.paginationConf = {

onChange: function() {

$http.get('xxx', function(data) {

$scope.paginationConf.totalItems = data.totalItems;

})

}

};

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
https://github.com/HCPLab-SYSU/SR是一个名为"Deep Reasoning with Knowledge Graph for Social Relationship Understanding"的项目,由Zhouxia Wang, 陈添水, 任思捷, 余伟浩, 成慧, 林倞在IJCAI 2018上发表。你可以在arXiv上找到该项目的论文(https://arxiv.org/abs/1807.00504),并且在GitHub上找到该项目的代码(https://github.com/HCPLab-SYSU/SR)。这个项目的目标是通过知识图谱进行社交关系的理解。它在PISC数据集上进行实验,并与旧方法进行对比,取得了很好的成果。在各类亲密、非亲密、没关系的社交关系上,研究者的新方法相比旧方法获胜。在6种细分的社交关系上,新旧方法平分秋色。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *3* [一个八卦的AI,嗅到了你和TA之间基情满满](https://blog.csdn.net/yH0VLDe8VG8ep9VGe/article/details/80970968)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] - *2* [WordPress.com REST API开发人员控制台-由https://github.com/Automattic/wp-api-console取代-Node.js开发](https://download.csdn.net/download/weixin_42108778/19120401)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值