mouseout

計算機程式語言,概述,返回值,參數,示例,腳本事件,

計算機程式語言

概述

在每一個匹配元素的mouseout事件中綁定一個處理函式。
英譯:
Bind a function to the mouseout event of each matched element.

返回值

jQuery

參數

fn (Function): 在每一個匹配元素的mouseout事件中綁定的處理函式。
英譯:
fn (Function): A function to bind to the mouseout event on each of the matched elements.

示例

$("p").mouseout( function() { alert("Hello"); } );
HTML 代碼:
<p>Hello</p>
結果:
<p onmouseout="alert('Hello');">Hello</p>

腳本事件

當滑鼠指針從元素上移開時,發生 mouseout 事件。
該事件大多數時候會與 mouseover 事件一起使用。

相關詞條

熱門詞條

聯絡我們