问题描述
仅当添加/删除子树中的节点时才调用此断点,而不是仅对其进行简单修改时才调用该断点吗?
Will this break-point will only be invoked if nodes in sub-tree is added/removed, and not if they are simply modified?
作为测试,我试图将带有JS的类添加到子树元素中,并且没有调用断点.
As testing I tried to add class with JS to sub-tree elements, and the breakpoint did not invoke.
所以只需要确定,将触发该特定断点的唯一事情就是添加/删除子节点,而不是对其属性的任何修改或与此相关的任何其他事情的修改有人确认吗?
So just want to be sure, that only thing that will trigger this particular break-point is only addition/removal of sub-nodes, and not the modification of any f they're attributes or anything else for that matter, can anyone confirm this?
推荐答案
子树修改是指在以给定节点为根的DOM [sub]树中的节点插入和删除.
Subtree modifications are node insertions and removals in the DOM [sub]tree rooted at the given node.
要中断对class
属性的修改,您需要使用...知道什么? Break on Attribute Modifications
! :-)
In order to break on the class
attribute modifications you need to use... know what? Break on Attribute Modifications
! :-)
这篇关于Chrome开发人员工具. DOM子树修改断点?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!