Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我们有一个复杂的 RIA。一个特定的元素附加了一个恶意的“display:none”,在浏览器检查器中查看时没有匹配的 CSS 文件 - 所以假设某处的 JS 文件正在动态应用它。是否可以找出添加它的脚本?
谢谢。
或者
这就像你在 JS 中的任何点都有一个断点,你有代码可以更改属性。由于element.style.display = "none"被映射到style属性上,它将为此触发。
element.style.display = "none"
style