Javascript 我如何使用检查元素找到这个测验的答案?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/55323478/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How would I find the answer to this quiz using inspect element?
提问by user7626961
I am trying to figure out where the answers to this online quiz website are stored. The online quiz requires an internet connection to begin the quiz but whilst doing the quiz you do not need an internet connection which makes me think that it is possible to find the answers using a tool like inspect element. Would I be right in saying this
我想弄清楚这个在线测验网站的答案存储在哪里。在线测验需要互联网连接才能开始测验,但在进行测验时您不需要互联网连接,这让我认为可以使用像检查元素这样的工具找到答案。我这样说对吗
Below is an example of me attempting a quiz on the website. As you can see, the quiz still evaluates my answer even when my internet connection is off.
以下是我尝试在网站上进行测验的示例。如您所见,即使我的互联网连接关闭,测验仍会评估我的答案。
I've had a look into the HTML but I couldn't find anything that hinted to the correct answer. The link to the HTML is in the pastebin below. You can use CTRL + F and search words from the questions in the video above to get to that specific bit of HTML.
我查看了 HTML,但找不到任何暗示正确答案的内容。HTML 的链接在下面的 pastebin 中。您可以使用 CTRL + F 并从上面视频中的问题中搜索词来获取 HTML 的特定部分。
I've also had a look at some of the main java script. I've been looking for so long yet I haven't found anything. I'm doubting if its even possible. The pastebin of a snippet of the javascript is also below. I'm not sure if it's even useful.
我还看了一些主要的java script. 我已经找了这么久,但我什么也没找到。我怀疑它是否可能。javascript 片段的 pastebin 也在下面。我不确定它是否有用。
https://hastebin.com/ukikonuroz.js
https://hastebin.com/ukikonuroz.js
If any other information is required, please request what you need to help.
如果需要任何其他信息,请请求您需要的帮助。
Thank you in advance for trying to help, I acknowledge that I haven't given you too much to work with but if you could say whether it is possible or not would be appreciated too
预先感谢您尝试提供帮助,我承认我没有给您太多的工作,但如果您能说出是否有可能,也将不胜感激
回答by Jonas Wilms
The questions / answers have to arrive at your browser in some way. There are two possible ways: They are included in the page itself, or they are loaded asynchronously via background requests. Either way, you can open the debugger and view all the requests the browser was doing and also look at its content.
问题/答案必须以某种方式到达您的浏览器。有两种可能的方式:它们包含在页面本身中,或者它们通过后台请求异步加载。无论哪种方式,您都可以打开调试器并查看浏览器正在执行的所有请求并查看其内容。

