有完整的 HTML/Javascript 在线搜索引擎吗?

发布于 2024-10-08 19:03:41 字数 264 浏览 0 评论 0原文

我正在寻找一个搜索引擎,它还可以索引 html 和 javascript 代码,而不仅仅是渲染。

用例:在我工作的约 80000 个页面的网站中,某些特定的硬编码 javascript 参数被使用。我需要找到具有特定参数的页面在哪里。

非常感谢。

编辑:上下文:我无法直接访问代码。有问题的参数用于配置一些信息以发送到 Adob​​e 的 Omniture(我在其中得到了奇怪的点击)。

编辑:也许没有这样的搜索引擎。我会保持这个问题开放......

I'm looking for a search engine that would also index the html and javascript code, and not only the rendering.

Use case: Some specific hardcoded javascript parameter is used somewhere in the ~80000 pages site I work on. I need to find where is the page with a specific parameter.

Much appreciated.

EDIT: Context: I don't have direct access to the code. The parameter in question is used to configure some info to send to Adobe's Omniture (into which I get weird hits).

EDIT: Maybe there is no such search engine. I'll keep the question open...

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

浅浅淡淡 2024-10-15 19:03:41

据我所知,没有一个在线搜索引擎可以做到这一点。您可以找到的最接近的工具是 Google 代码搜索,它对公共源代码进行索引。如果您将代码作为公共存储库托管在 githubGoogle 代码sourceforge > 等。

如果您正在开发一个私人项目,那么您应该有权访问源代码,不是吗?如果是这样,那么正如 @Spiny Norman 提到的,您可以简单地使用 grep

对于大型源库,您最好使用 ack

如果您的代码位于 SVN/Git 中,请查找 svnquerygit grep

As far as I know, there isn't an online search engine that would do that. The closest you can get to that would be Google Code Search which indexes public source code. You might be able to make use of it if you host your code as a public repository on services such as github, google code, sourceforge, etc.

If it is a private project you're working on, then you should have access to the source code, no? If so, then as @Spiny Norman mentioned, you can simply use grep.

For a large source base, you might be better off using ack.

If you have your code in SVN/Git, look up svnquery or git grep.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文