[英]how to know that what Javascript (line & file) is being used on a Web Page
Is it possible to find out (in Chrome/FireFox) that which Javascript file (and hopefully line number) is being used on a web page by a specific element? 是否有可能找出(在Chrome / FireFox中)特定元素在网页上使用哪个Javascript文件(以及希望行号)?
Thanks 谢谢
The question is a bit unclear, but I can show you how to watch a particular element for JavaScript interaction in Chrome: 问题有点不清楚,但我可以向您展示如何在Chrome中观看JavaScript交互的特定元素:
Then, after you do that, watch as we click the checkbox: 然后,在您执行此操作后,请在我们单击复选框时进行观察:
Some reference for Chrome: https://developers.google.com/chrome-developer-tools/docs/overview Chrome的一些参考: https : //developers.google.com/chrome-developer-tools/docs/overview
Most other browser work in a similar fashion. 大多数其他浏览器以类似的方式工作。 There are also other ways to find out how JavaScript code is interacting with your page, but you'll need to give me a more specific scenario to answer that.
还有其他方法可以找出JavaScript代码如何与您的页面进行交互,但您需要给我一个更具体的方案来回答这个问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.