Determine which JS file/line is modifying an element on my page [closed]

半城伤御伤魂 提交于 2019-12-01 01:38:27

In Google Chrome:

  1. Right-click on the element you want to detect changes to.
  2. In the Elements pane of the Developer Tools that shows up, right click on the element again (in this case a <label> element.
  3. Choose Break on…Attributes Modifications (or Subtree Modifications)
  4. Reload. Voila! You are stopped at the JavaScript code making the modification.

I hope following link would help you

https://developers.google.com/chrome-developer-tools/docs/javascript-debugging#breakpoints-mutation-events

It basically tells you how to track down events that mutated given dom element

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!