当前位置:网站首页>小程序swiper实现点击暂停和播放
小程序swiper实现点击暂停和播放
2022-07-28 05:19:00 【乐檬青年】
wxml部分:
<swiper autoplay="{ {autoplay}}">
<swiper-item></swiper-item>
</swiper>
js部分:
Page({
data: {
autoplay: "true"
}
点击事件名: function (e) {
this.setData({
autoplay: !this.data.autoplay
})
}
})
边栏推荐
- How Visio can quickly generate the same pattern and image matrix
- Advanced multithreading: Lock strategy
- 顺序表oj之合并两个有序数组
- 【uni-app】uni-app中scroll-into-view的使用
- Zotero——一款文献管理工具
- 树莓派串口
- 环形链表问题
- 标准C语言总结2
- Centos7 install MySQL 5.7
- The Monte Carlo method solves the PI and draws points with turtle, and completes the progress bar problem
猜你喜欢
随机推荐
Arcgis Engine安装的若干问题
shell运行原理
设置滚动条
树莓派蓝牙调试过程
冶金物理化学复习 -- 金属电沉积过程中的阴极极化,超电势以及阳极和阳极过程
[MySQL] solve the problem of MySQL time zone and 8-hour difference in database time
Simpledateformat thread unsafe and datetimeformatter thread safe
环形链表问题
pytorch安装----CPU版的
Writing methods of scientific research papers: add analysis and discussion in the method part to explain their contributions and differences
The way of deep learning thermodynamic diagram visualization
顺序表oj题目
Review of metallurgical physical chemistry --- liquid liquid reaction kinetics
Pytorch uses hook to get feature map
冶金物理化学复习 --- 复杂反应的速率方程
ES6----解构赋值
Implementation of date class and its basic functions
Openjudge: campus accommodation reservation system
冶金物理化学复习 --- 冶金反应动力学基础与多相反应动力学特征
树莓派串口配置









