--- title: IntersectionObserver.disconnect() slug: Web/API/IntersectionObserver/disconnect tags: - API - Disconnect - IntersectionObserver - Method translation_of: Web/API/IntersectionObserver/disconnect ---
disconnect()
方法终止对所有目标元素可见性变化的观察。IntersectionObserver.disconnect();
None.
undefined
.
Specification | Status | Comment |
---|---|---|
{{SpecName('IntersectionObserver','#dom-intersectionobserver-disconnect','IntersectionObserver.disconnect()')}} | {{Spec2('IntersectionObserver')}} | Initial definition. |
The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
{{Compat("api.IntersectionObserver.disconnect")}}