網站首頁 編程語言 正文
scroll-view組件里的屬性bindscroll
。
鏈接: bindscroll.
//wxml
<scroll-view scroll-y bindscroll="bindscrollfx" class="videoList">
//內容
</scroll-view>
// js
//判斷上下滾動方向)(deltaY小于0時,向下,向上則反之)
bindscrollfx: function (e) {
var that = this;
console.log(e.detail.deltaY);
var scrollfx=e.detail.deltaY;
if(scrollfx<0){
that.setData({
istrue_scroll:false //向下滾動
})
}else{
that.setData({
istrue_scroll:true
})
}
},
原文鏈接:https://blog.csdn.net/Zan_Z/article/details/106834054
相關推薦
- 2022-07-13 nginx-1.20*安裝check模塊
- 2022-07-13 4:thingsboard的實體與關系
- 2022-05-24 C#多線程TPL常見操作誤區與異常處理_C#教程
- 2022-06-06 Array.prototype.myjoin
- 2022-04-30 DataGridView控件常用屬性介紹_C#教程
- 2022-11-23 jQuery?validate(submitHandler函數)驗證通過發送Ajax(實例詳解)_j
- 2022-09-04 c++?求數組最大最小值函數的實現_C 語言
- 2022-12-11 Go?模塊在下游服務抖動恢復后CPU占用無法恢復原因_Golang
- 最近更新
-
- window11 系統安裝 yarn
- 超詳細win安裝深度學習環境2025年最新版(
- Linux 中運行的top命令 怎么退出?
- MySQL 中decimal 的用法? 存儲小
- get 、set 、toString 方法的使
- @Resource和 @Autowired注解
- Java基礎操作-- 運算符,流程控制 Flo
- 1. Int 和Integer 的區別,Jav
- spring @retryable不生效的一種
- Spring Security之認證信息的處理
- Spring Security之認證過濾器
- Spring Security概述快速入門
- Spring Security之配置體系
- 【SpringBoot】SpringCache
- Spring Security之基于方法配置權
- redisson分布式鎖中waittime的設
- maven:解決release錯誤:Artif
- restTemplate使用總結
- Spring Security之安全異常處理
- MybatisPlus優雅實現加密?
- Spring ioc容器與Bean的生命周期。
- 【探索SpringCloud】服務發現-Nac
- Spring Security之基于HttpR
- Redis 底層數據結構-簡單動態字符串(SD
- arthas操作spring被代理目標對象命令
- Spring中的單例模式應用詳解
- 聊聊消息隊列,發送消息的4種方式
- bootspring第三方資源配置管理
- GIT同步修改后的遠程分支