javascript - 如何在我的代码中找到特定的 Javascript

标签 javascript jquery html firebug

问题是我有一个巨大的 Javascript 代码,它被分解成许多文件。
而且我似乎找不到特定的 javascript 代码在哪里。

如果你处在我的位置,你会如何寻找?

我安装了 firebug lite 但不知道如何使用它。谢谢。

附言出于某种原因,我无法对 SO 发表评论。对不起。

最佳答案

查看 this链接,特别是这些标题:

Find scripts easily

Many web applications are comprised of quite a number of files, and finding the one you want to debug can be a chore. Firebug's script file chooser sorts and organizes files into very clean list that will help you find any file in a snap.

Go directly to line 108, do not pass go

Often times you want to jump directly to a specific line of your script. Doing this couldn't be easier, just type the line number into the quick search box, preceded by the pound sign, as seen in the screen shot on the right.

查找脚本:enter image description here搜索脚本:enter image description here

关于javascript - 如何在我的代码中找到特定的 Javascript,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6080268/

相关文章:

javascript - 为什么我的复选框没有与我的 jQuery 连接?

javascript - vue.js 将数据属性设置为方法的返回值

javascript - 如何在不首先复制所有值的情况下移动数组中对象的属性值?

javascript - Django 中的 Ajax 请求速度缓慢

javascript - 如何选择类的每个实例的后代?

javascript - 如何在md-switch的两侧放置文本?

javascript - 如何以类似于 onsubmit ="return javascript function"的形式在提交按钮上执行 php 函数?

php - Cloudflare 访客 IP

javascript - IE11 和 Firefox 中的文件拖放

javascript - JQueryUI - 同时向左/向右滑动 div