JavaScript/IntersectionObserver:修订间差异
来自康健生活
| 第2行: | 第2行: | ||
实现规范 [https://w3c.github.io/IntersectionObserver/ Intersection Observer Editor’s Draft, 6 July 2022]。 | 实现规范 [https://w3c.github.io/IntersectionObserver/ Intersection Observer Editor’s Draft, 6 July 2022]。 | ||
== 场景 == | == 场景 == | ||
[https://github.com/w3c/IntersectionObserver/blob/main/explainer.md Intersection Observers Explained] | [https://github.com/w3c/IntersectionObserver/blob/main/explainer.md Intersection Observers Explained] 中简述了<code>延迟加载</code>等场景。 | ||
== 定义 == | |||
=== 页面可见性 === | |||
页面可见性相关属性和方法可以参阅 <syntaxhighlight lang="javascript" inline>Document.visibilityState</syntaxhighlight>、<syntaxhighlight lang="javascript" inline>Document.visibilityState</syntaxhighlight>等,这些内容在 MDN 中都有阐述<ref>Mozilla. Document.visibilityState[OL]. https://developer.mozilla.org/zh-CN/docs/Web/API/Document/visibilityState.</ref> | |||
== test == | == test == | ||
== 参考 == | == 参考 == | ||
* https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API | * https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API | ||
2023年2月3日 (五) 07:22的版本
前言
实现规范 Intersection Observer Editor’s Draft, 6 July 2022。
场景
Intersection Observers Explained 中简述了延迟加载等场景。
定义
页面可见性
页面可见性相关属性和方法可以参阅 Document.visibilityState、Document.visibilityState等,这些内容在 MDN 中都有阐述[1]
test
参考
- ↑ Mozilla. Document.visibilityState[OL]. https://developer.mozilla.org/zh-CN/docs/Web/API/Document/visibilityState.
No categories