weex swipe事件在iOS中不触发,但可以在Android中触发
weex swipe事件在iOS中不触发,但可以在Android中触发
代码如下:
<div class="room-wrapper">
<div class="room" v-for="item in 4" v-on:swipe="onSwipe($event,item)">
<text class="room-text">Room {{item}}</text>
</div>
</div>
onSwipe(event, item){
console.log('>>>>>>>>>>')
console.log(event)
console.log(event.direction)
},
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不是ios中不触发,而是在iOS中不能用console来打印