查看如何处理路由事件
基本上我们有一个巨大的项目,我们有一个事件处理程序,有时会被触发,而另一些则不会。我认为这是因为在代码丛林中的某个地方,我们正在处理该事件,因此它不会冒泡到我们需要的地方。有没有办法查出它在哪里处理?
谢谢!
Basically we have a huge project, and we have an event handler that sometimes is triggered and some others it isn't. I think this is because somewhere in the jungle of code, we're handling that event, so it doesn't bubble up to where we need it. Is there anyway to find out where is it being handled?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否尝试使用 Snoop... 有一个事件选项卡,它告诉我们事件冒泡到哪里以及在哪里处理...
Did you try to use Snoop..... there is an event Tab that tells us where the event is bubbled to and where its handled...