当前位置:网站首页>用swiper分类图标
用swiper分类图标
2022-07-26 23:18:00 【kilito_01】
例如现在有20个图标的数据
需要用swiper分页 一页15个图标
// 一页多少个
var num = 15
// 可以分几页
this.typePage = parseInt(Math.ceil(this.serviceList.length / num))
// newTypeList 是一个空数组 用来存放分页后的数据
// serviceList 是上面例如的20个图标的总共的数据
for (let i = 0; i < this.serviceList.length; i += num) {
this.newTypeList.push(this.serviceList.slice(i, i + num));
}

边栏推荐
- NAT network address translation protocol topology experiment
- 【你了解Cache吗——全面理解高速缓冲存储器】
- Rip routing information protocol topology experiment
- Redis distributed lock implemented by annotation
- 最新多线程&高并发学习资料,面试心里有底气
- C language -- while statement, dowhile statement, for loop and loop structure, break statement and continue statement
- Find a specific number in an ordered array
- Wechat applet: user wechat login process (attached: flow chart + source code)
- The problem of storing elements in TreeSet collection
- excel整行删除,图片一起删除
猜你喜欢

HCIP-第六天-OSPF静态大实验

C language - value range of data type and basic data type

静态路由基本配置 实现全网可达

oSPF基础实验配置

从单表到分表实现数据平滑迁移
![[brother Yang takes you to play with the linear table (III) - two way linked list]](/img/64/5367ff4fb6797565cb1f9e1a8aee4e.png)
[brother Yang takes you to play with the linear table (III) - two way linked list]
![[C language programming] branch structure](/img/17/f9d5360d8802d29079dcbfcc302003.png)
[C language programming] branch structure

膜拜,阿里内部都在强推的321页互联网创业核心技术pdf,真的跪了

NAT网络地址转换协议-拓扑实验

砺夏行动|源启数字化:既有模式,还是开源创新?
随机推荐
[brother Yang takes you to play with the linear table (III) - two way linked list]
On the first day of staying in the blog [for 80000]!
从单表到分表实现数据平滑迁移
【用C语言绘制直角坐标系】
[dimension reduction blow, take you to learn CPU in depth (Part 1)]
Summary of dataset operations in ppocrlabel format.
uni-app 微信小程序搜索关键字标红显示
测试工作十年,想对还在迷茫的朋友说:一点要做好个人规划...
Greenplum【部署 08】数据库小版本升级流程及问题处理 Error: open-source-greenplum-db-6 conflicts with
小姐姐笔记:我是如何学习简单源码拓展视野的
[do you know cache - fully understand cache]
聊聊自动化测试的度量指标
I was fired at the age of 30. I want to understand a few things
JVM interview questions (necessary for interview)
Qt中文乱码常量换行符终极解决方案
Prompt to leave the page
Little sister's notes: how do I learn simple source code to expand my horizons
MGRE、PPP、HDLC综合实验
【斐波那契数列及螺线 基于C语言】
Hcip day 6 OSPF static experiment