摘要: 触摸反馈 小程序的view容器组件和button组件提供了hover-class属性,触摸时会往该组件加上对应的class改变组件的样式 <button hover-class="hover">点击button</button> <button hover-class="hover">点击view< 阅读全文
posted @ 2020-03-25 15:12 shanlu 阅读(556) 评论(0) 推荐(0) 编辑
摘要: <view id="tapTest" data-hi="WeChat" bindtap="tapName">bindtap</view> Page({ tapName:function(event){ console.log(event); }, }) 以 bindtap 事件为例,事件是通过 bi 阅读全文
posted @ 2020-03-25 13:27 shanlu 阅读(105) 评论(0) 推荐(0) 编辑