diff options
Diffstat (limited to 'files/zh-cn/web/api/intersectionobserver/unobserve/index.html')
| -rw-r--r-- | files/zh-cn/web/api/intersectionobserver/unobserve/index.html | 30 |
1 files changed, 13 insertions, 17 deletions
diff --git a/files/zh-cn/web/api/intersectionobserver/unobserve/index.html b/files/zh-cn/web/api/intersectionobserver/unobserve/index.html index c3099ca224..45f8e1f5b5 100644 --- a/files/zh-cn/web/api/intersectionobserver/unobserve/index.html +++ b/files/zh-cn/web/api/intersectionobserver/unobserve/index.html @@ -4,14 +4,23 @@ slug: Web/API/IntersectionObserver/unobserve tags: - API - Intersection + - Intersection Observer + - Intersection Observer API + - IntersectionObserver - unobserve translation_of: Web/API/IntersectionObserver/unobserve +browser-compat: api.IntersectionObserver.unobserve --- -<div><code>unobserve()方法命令</code>IntersectionObserver停止对一个元素的观察。</div> +<div>{{APIRef("Intersection Observer API")}}</div> + +<p>{{domxref("IntersectionObserver")}}的<code>unobserve()</code> + 方法命令<code>IntersectionObserver</code>停止对一个元素的观察。 +</p> <h2 id="语法">语法</h2> -<pre class="syntaxbox">IntersectionObserver.unobserve(<em>target</em>);</pre> +<pre + class="brush: js"><em>IntersectionObserver</em>.unobserve(<em>target</em>);</pre> <h3 id="参数">参数</h3> @@ -40,24 +49,11 @@ observer.unobserve(document.getElementById("elementToObserve"));</pre> <h2 id="说明">说明</h2> -<table class="standard-table"> - <tbody> - <tr> - <th scope="col">Specification</th> - <th scope="col">Status</th> - <th scope="col">Comment</th> - </tr> - <tr> - <td>{{SpecName('IntersectionObserver','#dom-intersectionobserver-unobserve','IntersectionObserver.unobserve()')}}</td> - <td>{{Spec2('IntersectionObserver')}}</td> - <td>Initial definition.</td> - </tr> - </tbody> -</table> +{{Specifications}} <h2 id="浏览器兼容性">浏览器兼容性</h2> -<p>{{Compat("api.IntersectionObserver.unobserve")}}</p> +<p>{{Compat}}</p> <h2 id="另请参阅">另请参阅</h2> |
