Skip to content

Commit

Permalink
docs: update docs/JavaScript/visible.md
Browse files Browse the repository at this point in the history
  • Loading branch information
qiufeihong2018 committed Apr 30, 2024
1 parent ef2b2e8 commit 00d1975
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/JavaScript/visible.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ const callback = function(entries, observer) {
entries.forEach(entry => {
entry.time; // 触发的时间
entry.rootBounds; // 根元素的位置矩形,这种情况下为视窗位置
entry.boundingClientRect; // 被观察者的位置举行
entry.boundingClientRect; // 被观察者的位置矩形
entry.intersectionRect; // 重叠区域的位置矩形
entry.intersectionRatio; // 重叠区域占被观察者面积的比例(被观察者不是矩形时也按照矩形计算)
entry.target; // 被观察者
Expand Down

0 comments on commit 00d1975

Please sign in to comment.