// 第一次获取的记录
[
{content:'的'},
{content:'了'},
{content:'hello'},
{content:'你好'},
{content:'我'},
{content:'在你'},
{content:'a'}
]
// 第二次获取的记录
[
{content:'的'},
{content:'了'},
{content:'hello'},
{content:'你好'},
{content:'我'},
{content:'在你'},
{content:'a'} //新记录
{content:'bbb'} // 新记录
{content:'ccc'} // 新记录
{content:'dddd'}// 新记录
]
这是假设的数据。 第一次获取的时候是这个记录, 然后第二次获取的时候他会把新记录加入进去。
我想的是,定义一个变量, 然后把新数据塞进去。 问题我是不知道怎么把新纪录塞进去。
我只要获取下次最新的记录, 旧的不要获取。
补充下真实数据,没用的我去了
[
{
"id": "3445",
"content": "哦哦",
"sex": "1",
"status": "0",
"createtime": "1488427377",
"rid": "10",
"ms": "20",
"tocontent": "人气流星雨",
},
{
"id": "3446",
"content": "d d ",
"sex": "1",
"status": "0",
"createtime": "1488427378",
"rid": "10",
"ms": "20",
"tocontent": "人气流星雨",
}
{
"id": "3447",
"content": "啊啊",
"sex": "1",
"status": "0",
"createtime": "1488427379",
"rid": "10",
"ms": "20",
"tocontent": "人气流星雨",
}
]