[英]How to inspect javascript using Firefox developer tools
On a webpage I have a "onclick"
event in a <div>
element. 在网页上,我在<div>
元素中有一个"onclick"
事件。 Right clicking it on Firefox and inspecting it brings up the dev console. 在Firefox上右键单击并检查它会打开开发控制台。 At this point I see the function it is being called but I'm unable to lookup the code or the file that this function is pointing to, what am I missing? 在这一点上,我看到它正在被调用的功能,但是我无法查找该功能指向的代码或文件,我缺少了什么?
The body of the javascript function can be found in respective .js library. javascript函数的主体可以在相应的.js库中找到。 In developer's tool, click the tab "Debugger". 在开发人员的工具中,单击“调试器”选项卡。 It lists all .js files which might contain the function you are looking for. 它列出了所有可能包含您要查找的功能的.js文件。
Have you tried firebug add on for Firefox? 您是否尝试过在Firefox上使用firebug add on? I think it is clearer to see it with firebug. 我认为用萤火虫看更清楚。 I'm sorry if it's not what you are looking for, because i can't suggest it on comment 很抱歉,这不是您想要的,因为我无法在评论中建议
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.