jQuery event.result 属性
jQuery 教程
· 2019-03-11 06:42:27
实例
返回最后一次 click 事件的值:
$("button").click(function(){
return "Hello world!";
});
$("button").click(function(event){
$("p").html(event.result);
});
return "Hello world!";
});
$("button").click(function(event){
$("p").html(event.result);
});
定义和用法
event.result 属性包含由被指定事件触发的事件处理程序返回的最后一个值。
语法
event.result
| 参数 | 描述 |
|---|---|
| event | 必需。event 参数来自事件绑定函数。 |
点击查看所有 jQuery 教程 文章: https://codercto.com/courses/l/35.html
Introduction to Computer Science Using Python
Dierbach, Charles / 2012-12 / $ 133.62
Introduction to Computer Science Using Python: A Computational Problem-Solving Focus introduces students to programming and computational problem-solving via a back-to-basics, step-by-step, objects-la......一起来看看 《Introduction to Computer Science Using Python》 这本书的介绍吧!