当前位置:网站首页>小程序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
})
}
})
边栏推荐
猜你喜欢
随机推荐
冶金物理化学复习 --- 金属的电沉积,还原过程
结果填空 国庆有几天是星期日(纯Excel解决)
Canvas绘图1
三大缓存技术--localStorage、sessionStorage、Cookie
冶金物理化学复习 --- 冶金反应动力学基础与多相反应动力学特征
NPM, YRAN, NPX的差异与关系
Child parent thread interaction
日期类及其基本功能的实现
冶金物理化学复习 ---- 气固反应动力学
Openjudge: upper and lower case letters are interchanged
new,let,var,const以及暂时性死区,xml和json的区别
Use of IO streams
对象内多个数组的对应下标相加
uniapp-监听app是否有网络连接
NRF51822 回顾总结
Zotero——一款文献管理工具
The essence of dynamic convolution
Methods of gflops and total params of pytorch calculation model
排序之插入排序
js数据类型检测与修改检测








