问题描述
缺少对stopPropagation()
的IE支持,并且需要解决方法,但我无法确定是否存在相同的情况stopImmediatePropagation()
是正确的-是否对所有浏览器都安全?还是需要一套解决方法?
IE support for stopPropagation()
is lacking, and requires workarounds, but I can't tell if the same thing is true for stopImmediatePropagation()
- is it safe for all browsers, or does it requires its own set of workarounds?
推荐答案
另一个答案中提到的stopPropagation与event
对象在浏览器上本地可用的方法有关,而jQuery的stopPropagation()
方法可以正常工作在所有浏览器中(由于它是同一任务的包装,因此要考虑到运行此方法的浏览器功能)
The stopPropagation mentioned on the other answer is related to the method natively available on browser for the event
object , while the stopPropagation()
method of jQuery works fine in all browser (since it's a wrapper for the same task, taking into account the browser capabilities in which this method is run)
这篇关于浏览器是否支持stopImmediatePropagation?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!