aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/api/document/releasecapture/index.html
blob: 798a7e46f3e32a7e82181e922d0c7e7f548c62f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
---
title: document.releaseCapture
slug: Web/API/Document/releaseCapture
translation_of: Web/API/Document/releaseCapture
---
<p>{{ ApiRef() }}{{ gecko_minversion_header("2.0") }}</p>
<h3 id="Summary" name="Summary">概述</h3>
<p>如果该 document 中的一个元素之上当前启用了鼠标捕获,则释放鼠标捕获。通过调用 {{ domxref("element.setCapture()") }} 实现在一个元素上启用鼠标捕获。</p>
<h3 id="Syntax" name="Syntax">语法</h3>
<pre class="eval">document.releaseCapture()
</pre>
<p>一旦释放鼠标捕获,鼠标事件将不再全部被定向到启用了鼠标捕获的元素。</p>
<h3 id="Example" name="Example">示例</h3>
<p>请参见 {{ domxref("element.setCapture()") }}<a href="/en/DOM/element.setCapture#Example" title="en/DOM/element.setCapture#Example">示例</a></p>
<h3 id="Specification" name="Specification">规范</h3>
<p>基于 Internet Explorer 的实现。</p>
<h3 id="参见">参见</h3>
<ul>
 <li>{{ domxref("element.setCapture()") }}</li>
</ul>