FWQ
微信小程序 向左滑动删除功能的实现
这篇文章主要介绍了微信小程序 向左滑动删除功能的实现的相关资料,需要的朋友可以参考下 微信小程序 向左滑动删除功能的实现 实现效果图: 实现代码: 1、wxml touch-item元素绑定了bindtouchstart、bindtouchmove事件 <view> <view> <view>{{item.content}}</view> <view>删除</view> </view></view> 登录后复制 2、wxss flex布局、css3动画 .touch-item { font-size: 14px; display: flex; justify-content: space-between; border-bottom:1px solid #ccc; width: 100%; overflow: hidden } .content { width: 100%; padding: 10px; line-height: 22px;…