照片墙优化
This commit is contained in:
@@ -198,6 +198,8 @@ function loadMoreItems(step) {
|
||||
groupid++
|
||||
if(index<currentIndex+step) { // 如果加载的数据数量不足步长
|
||||
// 则需要再加载下一个分组, 下一个分组需要加载的图片数量是剩余的步长
|
||||
let tempIndex = currentIndex
|
||||
currentIndex = 0
|
||||
loadMoreItems(currentIndex + step - index)
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user