简体   繁体   English

如何知道网页上使用了什么Javascript(行和文件)

[英]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.

相关问题 jQuery / Javascript:如何删除当前页面未使用的页面的JS文件 - Jquery/Javascript: How to Remove JS file for a page which is not being used in current page 我可以排除在页面上使用 javascript 文件吗? - Can I exclude a javascript file from being used on a page? 如何知道用户当前是否正在使用Javascript读取页面? - How to know if a page is currently being read by the user with Javascript? 如何仅获取网页使用的特定 css 选择器? - how to get only specific css selectors being used by web page? 如何识别网页中正在使用的JQuery版本 - How to identify JQuery version being used in a web page 加载包含 javascript web 页面中代码使用的参数的 JSON 文件 - Loading a JSON file containing parameters used by the code in a javascript web page 如何找到和查看页面上正在使用的Javascript? - How can I locate and view Javascript that's being used on a page? 如何知道哪个网页正在调用外部javascript脚本 - how to know which web page is invoking an external javascript script 有谁知道这里使用的是什么Javascript库? - Anyone know what Javascript library is used here? 在Web浏览器中,JavaScript是否有可能获取有关当前页面使用的HTTPS证书的信息? - Within a web browser, is it possible for JavaScript to obtain information about the HTTPS Certificate being used for the current page?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM