English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

jQuery event.type 属性

jQueryのイベント

event.type属性は、既にトリガーされたイベントのタイプを返します。

文法:

event.type

トリガーされたイベントのタイプを返します:

$("p").on("click dblclick mouseover mouseout", function(event){
  $("div").text("イベント: " + event.type);
});
テストを見て‹/›

パラメータの値

パラメータ説明
eventこのeventのパラメータはイベントバインド機能から来ています

jQueryのイベント