Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.1k views
in Technique[技术] by (71.8m points)

用 chrome 怎么看某个元素的 JS?

clipboard.png
如图
用 chrome 怎么看某个元素的 JS,动态绑定的 JS 能不能顺着元素节点找到那段 JS 脚本,还是只有在 JS 文件里搜索关键字?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

控制台选中元素,右边选择event listener看吧
压缩过的话就很难定位了


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...