jQuery event.isImmediatePropagationStopped () method
Examples
Check event.stopImmediatePropagation () is called if:
$("div").click(function(event){
event.stopImmediatePropagation();
alert(event.isImmediatePropagationStopped());
});
event.stopImmediatePropagation();
alert(event.isImmediatePropagationStopped());
});
try it"
Definition and Usage
Whether to call on the method checks the specified event event.stopImmediatePropagation () method.
If event.stopImmediatePropagation () is called, the method returns true, otherwise returns false.
grammar
event.isImmediatePropagationStopped()
参数 | 描述 |
---|---|
event | 必需。 event 参数来自事件绑定函数。 |