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.
我们如何区分正常的 DOM 修改(由网页本身)和异常的 DOM 修改(由攻击者)?
我在javascript的突变事件中找不到办法。可能吗?
据我所知,没有办法区分合法更改和非合法更改。
你可能得到的最接近的方法是使用 DOM突变事件,但你又如何区分这些变化?并非所有浏览器都(完全)支持 DOM Level 2 事件。