如何知道哪个文件或脚本正在运行当前元素? [英] How to know which file or script is running current element?

查看:104
本文介绍了如何知道哪个文件或脚本正在运行当前元素?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设我有一个滑块,其中包含一个javascript文件,我要更改的脚本,但是包含这个javascript文件的多个文件。所以现在我想知道哪个文件或脚本已经运行到的当前元素,即。滑块。有没有办法知道?

解决方案

看看我想知道我们可以检查的滑块的脚本我' m使用firebug这里找到当前运行的脚本。以下图片描述了查找当前元素(即滑块)运行哪个脚本的步骤:





我们知道在最后一步(6)文件名是navigationf.js,其中当前脚本正在运行。


Suppose, I have a slider which contains a javascript file and the script I want to change for that but there are multiple files containing this javascript file. So now I would like to know which file or script exactly has been run to current element that i.e. slider. Is there any way to know?

解决方案

Let see I want to know the script of the slider to which we can inspect I'm using firebug here and find the current running script. The following picture describes the steps to find out which script is run for current element (i.e. slider):

We know in the last step (6) the file name is navigationf.js in which the current script is running.

这篇关于如何知道哪个文件或脚本正在运行当前元素?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆