• js 万恶之源 是否滚动到底部?


     

    let scrollHandle = (el) => {
    	// 如果已经滚到底部了
    	if (el.scrollHeight - el.scrollTop === el.clientHeight) {
    		console.log(123)
    	}
    }
    
    // 懒加载优化:滚动节流策略
    let __SCROLLTIMER__ = null
    // 绑定滚动事件
    $('.dgtable__warp').scroll(e => {
        clearTimeout(__SCROLLTIMER__);
        __SCROLLTIMER__ = setTimeout(_ => scrollHandle(e), 150);
    })
    
  • 相关阅读:
    Codeforces 858B
    区域赛前立FLAG
    GCJ Practice Contest
    UVa 10004 Bicoloring
    UVa 784 Maze Exploration
    Pacemaker+ISCSI实现Apache高可用-环境准备
    多机免密互信
    HAPROXY + Keepalived
    LVS+KEEPALIVED
    oracle-数据库被注入恶意攻击程序的案例恢复
  • 原文地址:https://www.cnblogs.com/CyLee/p/9859182.html
Copyright © 2020-2023  润新知