找不到源代码的javascript函数调用

编程入门 行业动态 更新时间:2024-10-24 08:32:58
本文介绍了找不到源代码的javascript函数调用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

好的,所以我需要在网站上找到一个特定的JavaScript函数的源代码。 (具体细节并不重要,除非没有办法做我所要求的)

Ok, so I need to find the source code of a particular javascript function on a website. (The specifics do not really matter unless there is no way to do what it is that I am asking)

我可以看到html代码链接中的函数调用 onclick =inbox.sendMessage();

I can see the function call in a link of html code onclick="inbox.sendMessage();"

我知道这个功能有效,因为如果我使用一个插件可以调用该页面上的函数,但是,我搜索了该页面中引用的每个.js文件,并且它们都没有包含一个名为sendMessage的函数。

I know that the function does work because if I use a plugin a can call the function on that page, however, I have searched every .js file is referenced in that page, and none of them contain a function called sendMessage.

我问的是,有没有办法将代码重新回到源代码,也许如果有一种方法来调试html并在onclick是触发然后进入函数来查看它的来源,但我不知道我该怎么做,或者甚至是可能的。任何帮助将不胜感激,谢谢。

What I am asking is, is there a way to follow the code back to the source, perhaps if there was a way to debug the html and break when the onclick is triggered and then step into the function to see its source, but I do not know how I can do that or if it is even possible. Any help will be greatly appreciated, Thanks.

推荐答案

我想你可以做:

inbox.sendMessage

<在webconsole中。 (没有括号的函数名称) 它将打印出函数的源代码。

In the webconsole. (the function name without the parenthesis) It will print out the source code of the function.

更多推荐

找不到源代码的javascript函数调用

本文发布于:2023-11-03 15:49:59,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1555494.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:找不到   源代码   函数   javascript

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!