1
我想从我的comboStore的末尾删除一些商品。如何从组合商店中删除商品
我想这是正确的,但在UI所有的数据显示。
假设我有500个数据。我只想显示100个数据。如何得到这个。
我试图在这里是
var ComboStore = this.store.data.items
var ComboStoreLen = ComboStore.length;
if (ComboStoreLen > 100) {
ComboStoreLen.length = 100; // setting the length
}
我需要在UI限制什么。因为ComboStore有500个数据。
你为什么不设置了一个param添加到您的代理,以便服务器只响应100条记录?如果你不需要它,为什么要加载这么多的数据?或者你呢? – scebotari66
如何添加? – David
查看[extraParams](http://docs.sencha.com/extjs/6.2.0/classic/Ext.data.proxy.Ajax.html#cfg-extraParams)代理配置 – scebotari66