fetchData(offset) {
offset = offset ? '?offset' +offset : '';
this.$http.get('/api/RoomApi/live/outdoor' + offset).then((response) => {
response = response.body;
if (response.error === 0) {
this.list = response.data;
if (this.page > 0) {
this.list.concat(response.data.slice(-2));
}
}
});
}
我将获取的数据添加在原来的数据后面,但是整个页面直接重绘了,我想要实现的是那种下拉加载效果,这种该怎么实现呢?不重绘掉整个页面
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
欢迎选择我的课程,让我们一起见证您的进步~~