HTML DOM:哪些事件不起泡? [英] HTML DOM: Which events do not bubble?

查看:104
本文介绍了HTML DOM:哪些事件不起泡?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大多数事件在所有浏览器中都会起泡。不过,我知道在Internet Explorer提交事件不要泡沫。什么是不起泡的其他事件?

解决方案

任何一个特定于一个元素的事件不会起泡:提交,焦点,模糊,加载,卸载,更改,重置,滚动,大多数DOM事件(DOMFocusIn,DOMFocusOut,DOMNodeRemoved等),mouseenter,mouseleave等。


Most events bubble in all browsers. However, I know that in Internet Explorer "submit" events do not bubble. What are the other events that do not bubble?

解决方案

Any events specific to one element do not bubble: submit, focus, blur, load, unload, change, reset, scroll, most of the DOM events (DOMFocusIn, DOMFocusOut, DOMNodeRemoved, etc), mouseenter, mouseleave, etc

这篇关于HTML DOM:哪些事件不起泡?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆