简体   繁体   English

Chrome 开发工具:临时关闭事件

[英]Chrome dev tools: temporary turn off events

I have complex SPA with component which performs some DOM manipulating when clicked.我有一个带有组件的复杂 SPA,它在单击时执行一些 DOM 操作。

How can I inspect DOM of this component with chrome dev tools ( Ctrl + Shift + C on default) without raising any events (to see DOM before manipulations)?如何使用 chrome 开发工具(默认为Ctrl + Shift + C )检查该组件的 DOM 而不引发任何事件(在操作前查看 DOM)?

The right side of the developer console provides more controls.开发者控制台的右侧提供了更多控件。 You can click on the DOM element you want then either choose "Event Listeners" to track the build in event listeners of the element (without you adding any listeners) or alternatively add DOM Breakpoints (by right clicking on the element and choosing when to break) and use the DOM Breakpoints option (on the right side menu).您可以单击所需的 DOM 元素,然后选择“事件侦听器”来跟踪元素的事件侦听器的构建(无需添加任何侦听器),或者添加 DOM 断点(通过右键单击元素并选择何时中断) 并使用DOM Breakpoints选项(在右侧菜单中)。 Hope this helps希望这有帮助

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM