简体   繁体   English

我如何知道Click事件上正在加载哪个脚本文件

[英]How can i know which script file is loading on Click event

i have many javascript files with same name but How can i know which script file is loading on Click event. 我有许多同名的javascript文件,但是如何知道Click事件上正在加载哪个脚本文件。 is there any debugging tool which directly opens the script file and points to the certain function. 是否有任何调试工具可以直接打开脚本文件并指向特定功能。

please mention how to debug in IE as well. 请提及如何在IE中进行调试。

Use chrome inspector. 使用镀铬检查器。 Find Event Listener Breakpoints under Sources tab. 在“ Sources选项卡下找到“ Event Listener Breakpoints ”。 Check the action name click . 检查动作名称, click Now inspector will automatically capture your click events and open up the source file with a break-point which helps you an easy debug. 现在,检查器将自动捕获您的单击事件,并使用一个断点打开源文件,这有助于您轻松调试。 (I don't think IE has such a feature) (我不认为IE具有这种功能)

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM