Function scrollFixedWatcher
- scrollFixedWatcher(target: HTMLElement, cb: ((reach: boolean) => void), top??: number, container??: HTMLElement | Window): (() => void)
-
Parameters
-
target: HTMLElement
-
cb: ((reach: boolean) => void)
-
- (reach: boolean): void
-
Returns void
-
Optional
top: number = 0
-
Optional
container: HTMLElement | Window = window
Returns (() => void)
判断是否固定在顶部的条件
Returns