diff options
| author | alattalatta <urty5656@gmail.com> | 2021-11-28 21:47:30 +0900 |
|---|---|---|
| committer | hochan Lee <hochan049@gmail.com> | 2021-12-13 00:45:04 +0900 |
| commit | 321e9f39e87510a6317a1f9c5c993523294da4a5 (patch) | |
| tree | b69a43762f24b23d00b113b0959a4ca2de5fdad7 /files/ko/web/api/intersectionobserver/takerecords | |
| parent | bd6329150011e7af74cbd5bf344d5e1a86935060 (diff) | |
| download | translated-content-321e9f39e87510a6317a1f9c5c993523294da4a5.tar.gz translated-content-321e9f39e87510a6317a1f9c5c993523294da4a5.tar.bz2 translated-content-321e9f39e87510a6317a1f9c5c993523294da4a5.zip | |
Rewrite and add IntersectionObserver methods
Diffstat (limited to 'files/ko/web/api/intersectionobserver/takerecords')
| -rw-r--r-- | files/ko/web/api/intersectionobserver/takerecords/index.md | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/files/ko/web/api/intersectionobserver/takerecords/index.md b/files/ko/web/api/intersectionobserver/takerecords/index.md new file mode 100644 index 0000000000..68338cc046 --- /dev/null +++ b/files/ko/web/api/intersectionobserver/takerecords/index.md @@ -0,0 +1,42 @@ +--- +title: IntersectionObserver.takeRecords() +slug: Web/API/IntersectionObserver/takeRecords +tags: + - API + - Intersection Observer + - Intersection Observer API + - IntersectionObserver + - Method + - NeedsExample + - Reference + - takeRecords +browser-compat: api.IntersectionObserver.takeRecords +translation_of: Web/API/IntersectionObserver/takeRecords +--- +{{APIRef("Intersection Observer API")}} + +{{domxref("IntersectionObserver")}}의 **`takeRecords()`** 메서드는 주시 대상 중에서 마지막 교차 변화 알림 이후, 즉 명시적인 `takeRecords()` 호출 또는 감지기의 콜백 자동 호출 이후 교차 영역에 변화가 생긴 요소를 나타내는 {{domxref("IntersectionObserverEntry")}} 객체의 배열을 반환합니다. + +> **참고:** 콜백으로 교차 영역의 변화를 관측하고 있으면 굳이 이 메서드를 호출하지 않아도 됩니다. `takeRecords()`를 호출하면 대기 중인 교차 변화 감지 목록을 초기화하므로 감지기가 콜백을 호출하지 않을 것입니다. + +## 구문 + +```js +intersectionObserverEntries = intersectionObserver.takeRecords(); +``` + +### 반환 값 + +마지막 교차 변화 알림 이후 교차 영역의 변화를 감지한 대상 요소를 나타내는 {{domxref("IntersectionObserverEntry")}}의 배열. + +## 명세 + +{{Specifications}} + +## 브라우저 호환성 + +{{Compat}} + +## 같이 보기 + +- [Intersection Observer API](/ko/docs/Web/API/Intersection_Observer_API) |
