aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/conflicting/web/api/globaleventhandlers/onmouseup/index.html
blob: 2a1afdf2acd118d554d35cce37169c6df63ea7c3 (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
44
---
title: window.onmouseup
slug: conflicting/Web/API/GlobalEventHandlers/onmouseup
translation_of: Web/API/GlobalEventHandlers/onmouseup
translation_of_original: Web/API/Window/onmouseup
original_slug: 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>&lt;html&gt;
&lt;head&gt;

&lt;title&gt;onmouseup测试&lt;/title&gt;

&lt;script type="text/javascript"&gt;

window.onmouseup = mouseup;

function mouseup()
{
 alert("检测到mouseup事件!");
}
&lt;/script&gt;
&lt;/head&gt;

&lt;body&gt;
&lt;p&gt;在页面上按下鼠标中某个键,保持几秒后松开.mouseup事件会在你松开鼠标时触发&lt;/p&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
<h3 id="Specification" name="Specification">规范</h3>
<p>没有任何公开的标准</p>
<p>{{ languages( { "ja": "ja/DOM/window.onmouseup" ,"en": "en/DOM/window.onmouseup" } ) }}</p>