如何识别外部java脚本文件中的当前Java脚本调用方法 [英] How to identify Current Java script calling method in External java script file

查看:76
本文介绍了如何识别外部java脚本文件中的当前Java脚本调用方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序不包含外部js文件,每个文件包含多个javascript方法。



我的问题是:如果我在任何外部js中调用任何方法文件在我当前运行的页面中,如何识别哪个外部文件,哪个js方法是从浏览器调用的。

解决方案

首先,安装 Firebug [ ^ ]。安装完成后,会出现一个脚本选项卡,您可以在其中找到所有Javascript代码。有一个Step Into和Step Over功能,你甚至可以在你的脚本上设置断点。这是一个有用的工具。


看看下面提到的文章。



1. Script Panel [ ^ ]

2. 使用Firebug调试Javascript [ ^ ]

My application consists no of external js files, each file consists of number of javascript methods.

my question is : if i call any method in any external js file in my current running page, how to identity in which external file, which js method is calling from browser.

解决方案

First of all, install Firebug[^] on your Firefox browser. When that is installed, there is a script tab where you can find all your Javascript codes. There's a Step Into and Step Over function and you can even set breakpoints on your scripts. It's a useful tool.


Take a look at the articles mentioned below.

1. Script Panel[^]
2. Debugging Javascript with Firebug[^]


这篇关于如何识别外部java脚本文件中的当前Java脚本调用方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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