I render the arrays in data
to each swiper-item
, and then set to load only 10 swiper-item
when entering the interface for the first time. When you slide to the ninth swiper-item
, run the load function to get 10 new pieces of data, and then concat
into the long function. The data will be re-rendered, but at the same time, there will be stutters when sliding, or directly stuck, can no longer slide, can only exit Mini Program and then enter to restore the problem.
if(!firstRequest) {
var appList = pageData.data.app;
pageData.setData({
app: appList.concat(appListNew)
});
}
else {
pageData.setData({
app: appListNew
});
}
do you bosses have the same problem? Please give me some advice.