小程序中页面 判断下拉还是上滑

wxml: <view hidden="{{hide}}" class="fixhead" >头部固定</view> <view class='demo1'>滑动1</view> <view class='demo2'>滑动2</view> wxss: .demo1,.demo2{ height: 300px; margin-top: 100rpx; } .fixhead{ position: f
相关文章
相关标签/搜索