返回最后一次 click 事件的值:
$("button").click(function(){
return "Hello world!";
});
$("button").click(function(event){
$("p").html(event.result);
});
尝试一下 »event.result 属性包含由被指定事件触发的事件处理程序返回的最后一个值。
event.result
| 参数 | 描述 |
|---|---|
| event | 必需。event 参数来自事件绑定函数。 |
在线实例
字符集 & 工具
最新更新
站点信息
jQuery 事件方法