当前位置:网站首页>UNI-APP_ monitor page scroll h5 monitor page scroll
UNI-APP_ monitor page scroll h5 monitor page scroll
2022-08-10 00:12:00 【small crooked | front end】
1. In uniapp, use the life cycle onPageScroll()
onPageScroll(e) {console.log(e.scrollTop)if (e.scrollTop >= 120) {console.log(true)} else {}},2. Use native js for monitoring in ordinary h5 pages
window.onscroll = function ()span> {//In order to ensure compatibility, three values are taken here, which one has a value//scrollTop is the height of the scroll wheel when the scroll wheel event is triggeredvar scrollTop = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop;console.log("Scroll Distance" + scrollTop);}边栏推荐
- C. Mere Array
- 阿里云架构师金云龙:基于云XR平台的视觉计算应用部署
- js数组对象去重
- R语言ggplot2可视化:使用ggpubr包的ggscatter函数可视化散点图、使用scale_x_continuous函数的breaks参数指定X轴的断点的个数(设置参数n)
- 一文让你快速了解隐式类型转换【整型提升】!
- HBuilder X 不能运行到内置终端
- Flask introductory learning tutorial
- (转)FreeType字体位图属性
- R语言ggstatsplot包grouped_ggscatterstats函数可视化分组散点图、并添加假设检验结果(包含样本数、统计量、效应大小及其置信区间、显著性、组间两两比较、贝叶斯假设)
- [Microservice~Nacos] Configuration Center of Nacos
猜你喜欢
随机推荐
杂谈——程序员的悲哀
R语言检验时间序列的平稳性:使用tseries包的adf.test函数实现增强的Dickey-Fuller(ADF)检验、检验时序数据是否具有均值回归特性(平稳性)、不具有均值回归特性的案例
R语言修改dataframe数据列的名称:使用dplyr包的rename函数修改列名、使用colnmaes函数修改列名、在数据筛选的时候重命名列名
R语言patchwork包将多个可视化结果组合起来、使用plot_annotation函数以及tag_level参数将组合图用大写字母进行顺序编码、为组合图的标签添加自定义前缀信息
D. Binary String To Subsequences
JuiceFS 在多云存储架构中的应用 | 深势科技分享
继承关系下构造方法的访问特点
R语言ggplot2可视化:使用ggpubr包的ggerrorplot函数可视化误差线(可视化不同水平均值点以及se标准误差)、设置add参数为dotplot添加点阵图
xctf攻防世界 Web高手进阶区 ics-05
R语言ggplot2可视化:使用ggpubr包的ggscatter函数可视化散点图、使用scale_x_continuous函数的breaks参数指定X轴的断点的个数(设置参数n)
APS系统能消除造成生产和运输延迟的瓶颈
注意力引导网络用于视网膜图像分割
Basic operations of openGauss database (super detailed)
C. Omkar and Baseball
[Microservice~Nacos] Nacos service provider and service consumer
工作经验-组件封装(拖拽排序组件)
Users should clearly know that quantitative trading is not a simple procedure
Redis
OSS文件上传
面试官:Redis 大 key 要如何处理?









