当前位置:网站首页>Sort icons with swiper
Sort icons with swiper
2022-07-27 02:43:00 【kilito_ 01】
For example, there is now 20 Data of icons
Need to use swiper Pagination One page 15 An icon
// How many on a page
var num = 15
// It can be divided into several pages
this.typePage = parseInt(Math.ceil(this.serviceList.length / num))
// newTypeList It's an empty array Used to store paged data
// serviceList It's the above example 20 Total data of icons
for (let i = 0; i < this.serviceList.length; i += num) {
this.newTypeList.push(this.serviceList.slice(i, i + num));
}

边栏推荐
- [after this article, learning the linked list is a smooth way]
- 小程序utils
- 小姐姐笔记:我是如何学习简单源码拓展视野的
- F8 catch traffic, F9 catch rabbits, f10turttle
- 【洋哥带你玩转线性表(四)——链式队列】
- JMeter下载安装
- 解决小程序报错getLocation:fail the api need to be declared in the requiredPrivateInfos field in app.json
- BigDecimal 的 4 个坑,你踩过几个?
- Tabbar of customized wechat applet on uni app
- 【自此文之后,学习链表一片坦途】
猜你喜欢

消息队列学习 -- 概念

c语言:深度学习递归

C语言程序的编译(预处理)下

解决小程序报错getLocation:fail the api need to be declared in the requiredPrivateInfos field in app.json

Functions of libraries and Archives

蚂蚁京东新浪10位架构师424页佳作深入分布式缓存从原理到实践pdf

【用C语言绘制谢尔宾斯基三角形】

JUC concurrent programming

OSPF总结(思维导图)

Witness that the "decoding 2022 strong star of China's network security" is about to set sail
随机推荐
Three handshakes and four disconnects of TCP
中断、信号、系统调用
Ubuntu基于docker的mysql主从数据库配置
Leetcode skimming -- no.238 -- product of arrays other than itself
Solve prime numbers between 100 and 200
Solve every bit of an integer
线程和进程
Make static routing accessible to the whole network through ENSP
[C language] factorial implementation
消息队列学习 -- 概念
Record the nth SQL exception
无效的目标发行版:17 的解决办法
【洋哥带你玩转线性表(三)——双向链表】
Mysql 5.7 取分组第一条
js utils 零碎
【自此文之后,学习链表一片坦途】
信息收集-端口扫描工具-Nmap使用说明
The latest multi-threaded & highly concurrent learning materials, interview confidence
Multipoint bidirectional republication and routing strategy topology experiment
Encyclopedia of websites commonly used by people who know current affairs