Phương thức jQuery event.isIm InstantPropagationStopped ()
Thí dụ
Kiểm tra xem event.stopIm InstantPropagation () có được gọi hay không:
$("div").click(function(event){
event.stopImmediatePropagation();
alert(event.isImmediatePropagationStopped());
});
Định nghĩa và Cách sử dụng
Phương thức này kiểm tra xem event.stopIm InstantPropagation () có được gọi cho sự kiện hay không.
Phương thức này trả về true nếu event.stopIm InstantPropagation () được gọi và false nếu không.
Cú pháp
event.isImmediatePropagationStopped()
Parameter | Description |
---|---|
event | Required. The event parameter comes from the event binding function |