文件名:index.wxml
所在目录:wxcomponents
<wxs src="./touch.wxs" module="touch" />
<view catch:touchstart="{{touch.touchstart}}"
catch:touchmove="{{touch.touchmove}}"
catch:touchend="{{touch.touchend}}">
<view>
<view bind:tap="handleTap">删除</view>
</view>
<view>
<view bind:tap="handleTap">删除</view>
</view>
</view>
1 个回复
野猪佩奇_ (作者)
解决了,把touchstart的catch改为bind。