blob: 03a4b116b88c0ee83a8819c6e06107213a91510c (
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: window.onmouseup
slug: Web/API/Window/onmouseup
translation_of: Web/API/GlobalEventHandlers/onmouseup
translation_of_original: Web/API/Window/onmouseup
---
<p>{{ ApiRef() }}</p>
<h3 id="Summary" name="Summary">概述</h3>
<p>当前窗口的mouseup事件的事件句柄.</p>
<h3 id="Syntax" name="Syntax">语法</h3>
<pre class="eval">window.onmouseup = <em>funcRef</em>;
</pre>
<h3 id="Parameters" name="Parameters">参数</h3>
<ul>
<li><code>funcRef</code> 是个函数引用</li>
</ul>
<h3 id="Example" name="Example">例子</h3>
<pre>window.onmouseup = doFunc;
</pre>
<pre><html>
<head>
<title>onmouseup测试</title>
<script type="text/javascript">
window.onmouseup = mouseup;
function mouseup()
{
alert("检测到mouseup事件!");
}
</script>
</head>
<body>
<p>在页面上按下鼠标中某个键,保持几秒后松开.mouseup事件会在你松开鼠标时触发</p>
</body>
</html>
</pre>
<h3 id="Specification" name="Specification">规范</h3>
<p>没有任何公开的标准</p>
<p>{{ languages( { "ja": "ja/DOM/window.onmouseup" ,"en": "en/DOM/window.onmouseup" } ) }}</p>
|