changecoder-utils

判断滚动条到底部,需要用到DOM的三个属性值,即scrollTop、clientHeight、scrollHeight。 1. scrollTop: 滚动条在Y轴上的滚动距离 2. clientHeight: 内容可视区域的高度(元素内容及其边框所占据的空间大小) 3. scrollHeight: 内容可视区域的高度加上溢出(滚动)的距离(元素内容的总高度) 从这三个属性的介绍就可以看出来,滚动条到底部的条件即为scrollTop + clientHeight == scrollHeight。

85

Security score

0 known advisories in v0.0.3

0-100 score computed by this site from verifiable signals only: known OSV.dev advisories affecting this exact version, how recently it was published, and the repository's OpenSSF Scorecard.advisory penalty −0 · staleness penalty −15

Weekly downloads

Downloads across all versions in the last 7 days, from the official npm downloads API (api.npmjs.org).

1

Unpacked size

Size of v0.0.3 on disk after npm install extracts the tarball, as reported by the npm registry.

22.0 kB

Dependencies

Direct runtime dependencies declared by v0.0.3. Transitive dependencies are not counted here — use the lockfile audit for the full tree.

0

Last publish

When v0.0.3 was published to the registry. Long gaps can indicate an unmaintained package.

8 years ago

Security advisories

Vulnerabilities affecting v0.0.3 specifically, from OSV.dev — the open database aggregating the GitHub Advisory Database (GHSA) and CVEs. Links open the full advisory.

No known vulnerabilities affect v0.0.3.

Downloads — last 30 days

Daily download counts across all versions for the last 30 days, from the npm downloads API. Weekend dips are normal for developer tooling.

15 total 75.0% vs prior week

Jul 7Aug 5