jQueryevent.resultプロパティ_

❮jQueryイベントメソッド

前のクリックイベントの値を返します。

$("button").click(function(){
  return "Hello world!";
});
$("button").click(function(event){
  $("p").html(event.result);
});

定義と使用法

event.resultプロパティには、指定されたイベントによってトリガーされたイベントハンドラーによって返される最後/前の値が含まれます。


構文

event.result

Parameter Description
event Required. The event parameter comes from the event binding function

❮jQueryイベントメソッド