使用REST一次获取列表项100 [英] Getting List Items 100 At a Time Using REST

查看:69
本文介绍了使用REST一次获取列表项100的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有598个项目的列表,并且快速扩展(在接下来的5年中全年可能每天大约十几个)。

I have a list of 598 items, and expanding quickly (probably a dozen a day throughout the year for the next 5 years).

开发基于JS的项目列表查看器表单,我所有的列表交互都是使用REST uris&查询。

In developing a JS-based list viewer form, all my list interactions are done with REST uris & queries.

我知道如何使用$ top = 100来获得前100项,$ count来获得项目总数。

I know how to use $top=100 to get the first 100 items, and $count to get the total number of items.

现在假设我要检索项目101到200

Now suppose I want to retrieve items 101 to 200

我在REST查询中使用什么标准?  $ top = 200& $ skip = 100?

What criteria do I use in the REST query?  $top=200&$skip=100 ?

或$ filter?

推荐答案

在一个请求中加载598项是正常的,而不是通过分页创建对数据源的重复调用,我建议你使用" DataTable JS "一个jquery
插件,用于查看具有可自定义分页配置,主题,排序,过滤和搜索功能的数据。

Loading the 598 items in one request call its a normal, instead of creating the repeated call to your data source through pagination, I would recommend you to use the "DataTable JS" a jquery plug-in to see the data with customizable pagination configuration, theme, sort, filter and search functionalities.


这篇关于使用REST一次获取列表项100的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆