jQuery event.isImmediatePropagationStopped() 方法

jQuery 教程 · 2019-03-10 22:56:56

实例

检查 event.stopImmediatePropagation() 是否被调用:

$("div").click(function(event){
    event.stopImmediatePropagation();
    alert(event.isImmediatePropagationStopped());
});

定义和用法

该方法检查指定的事件上是否调用了 event.stopImmediatePropagation() 方法。

如果 event.stopImmediatePropagation() 被调用则该方法返回 true,否则返回 false。

语法


event.isImmediatePropagationStopped()

参数 描述
event 必需。event 参数来自事件绑定函数。

点击查看所有 jQuery 教程 文章: https://www.codercto.com/courses/l/35.html

查看所有标签

The Seasoned Schemer

The Seasoned Schemer

Daniel P. Friedman、Matthias Felleisen / The MIT Press / 1995-12-21 / USD 38.00

drawings by Duane Bibbyforeword and afterword by Guy L. Steele Jr.The notion that "thinking about computing is one of the most exciting things the human mind can do" sets both The Little Schemer (form......一起来看看 《The Seasoned Schemer》 这本书的介绍吧!

随机密码生成器
随机密码生成器

多种字符组合密码

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具

HEX HSV 转换工具
HEX HSV 转换工具

HEX HSV 互换工具