aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/api/intersectionobserver/disconnect/index.html
blob: 92a8b99ff149a6d09bb7c5e82d87398a0ea97c48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
---
title: IntersectionObserver.disconnect()
slug: Web/API/IntersectionObserver/disconnect
tags:
  - API
  - Disconnect
  - Intersection Observer
  - Intersection Observer API
  - IntersectionObserver
  - Method
translation_of: Web/API/IntersectionObserver/disconnect
---
<div>{{APIRef("Intersection Observer API")}}</div>

<div> {{domxref("IntersectionObserver")}} 的<code>disconnect()</code>方法终止对所有目标元素可见性变化的观察。</div>

<h2 id="语法">语法</h2>

<pre
  class="brush: js"><em>intersectionObserver</em>.disconnect();</pre>

<h3 id="参数">参数</h3>

<p>None.</p>

<h3 id="返回值">返回值</h3>

<p><code>undefined</code>.</p>

<h2 id="说明">说明</h2>

{{Specifications}}

<h2 id="浏览器兼容性">浏览器兼容性 </h2>

<p>{{Compat}}</p>

<h2 id="See_also">参考</h2>

<ul>
 <li>{{domxref("IntersectionObserver.observe", "observe()")}}</li>
 <li>{{domxref("IntersectionObserver.unobserve", "unobserve()")}}</li>
</ul>