Function createScrollLogListener
- createScrollLogListener(element?, callback?, delay?, threshold?): undefined | (() => void)
Parameters
Optional
element: anyOptional
callback: any- delay: number = 800
- threshold: number = 30
Returns undefined | (() => void)
创建全局 scroll 事件埋点与回调 若 log-* 属性报错,记得 eslint 关闭
'react/no-unknown-property': 'warn'
。