客户端:删除一条,索引不变,
服务器:向上弹出一条,然后实时查询,就错过了一条,
count = 1,pageindex = pageindex * count,代表第几页,请求的是第
几条数据,也可以根据 数组里面有几条数据 就选择加载几条数据,
if (isLoadOne) {
[params setObject:@"1" forKey:@"count"];
[params setObject:[NSString stringWithFormat:@"%d",(pageIndex
*2)] forKey:@"pageIndex"];
}else{
[params setObject:@"2" forKey:@"count"];
[params setObject:[NSString stringWithFormat:@"%d",pageIndex]
forKey:@"pageIndex"];
}
时间: 2024-10-21 15:37:38