//* 函数组件的 js 部分
// 目标节点:ref={r => { targetRef.current = r }}
const targetRef = useRef(null);
// 触底允许的偏移值
const touchOffset = 100;
// 是否已经触发触底回调:touchedCallBack
const [isTCB, setIsTCB]
react 列表滚动触发回调
最新推荐文章于 2022-09-23 11:44:06 发布