jQuery event.isImmediatePropagationStopped() method

jQuery event method

Check that event.stopImmediatePropagation() is called:

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

Try it out . . .

Definitions and usages

This method checks whether the event.stopImmediatePropagation() method is called on the specified event.

If event.stopImmediatePropagation() is called, the method returns true, otherwise false.


Grammar

event .isImmediatePropagationStopped()

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


jQuery event method