jQuery event.type 属性
jQuery 教程
· 2019-03-11 07:57:52
实例
返回哪种事件类型被触发:
$("p").on("click dblclick mouseover mouseout",function(event){
$("div").html("Event: " + event.type);
});
$("div").html("Event: " + event.type);
});
定义和用法
event.type 属性返回哪种事件类型被触发。
语法
event.type
| 参数 | 描述 |
|---|---|
| event | 必需。event 参数来自事件绑定函数。 |
点击查看所有 jQuery 教程 文章: https://www.codercto.com/courses/l/35.html
Effective C++
[美]Scott Meyers / 侯捷 / 电子工业出版社 / 2006-7 / 58.00元
《Effective C++:改善程序与设计的55个具体做法》(中文版)(第3版)一共组织55个准则,每一条准则描述一个编写出更好的C++的方式。每一个条款的背后都有具体范例支撑。第三版有一半以上的篇幅是崭新内容,包括讨论资源管理和模板(templates)运用的两个新章。为反映出现代设计考虑,对第二版论题做了广泛的修订,包括异常(exceptions)、设计模式(design patterns)......一起来看看 《Effective C++》 这本书的介绍吧!