【问题标题】:Read response that came before run script阅读运行脚本之前的响应
【发布时间】:2019-11-26 22:21:11
【问题描述】:

例如,一些不是我的网站。在页面加载时,发送请求并返回response。我可以通过网络选项卡(Ctrl + Shift + J,Chrome)看到它。

现在我想在控制台选项卡中手动运行我的脚本。我需要包含在response 中的数据。我可以手动找到数据然后点击store as global variable然后使用它。

我可以编写一些脚本将数据读入“网络”选项卡中已经存在的response 吗?在脚本中重复请求的情况不适合。

【问题讨论】:

    标签: javascript post get request response


    【解决方案1】:

    不在您的网站上?非常困难。如果找到该行(在 chrome 上),您可以设置断点,编辑下面的代码,ctrl + s 并再次运行。如果您制作window.response = response,您应该可以从您的控制台访问它。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-12-27
      • 2018-08-09
      • 1970-01-01
      • 2013-10-24
      • 1970-01-01
      相关资源
      最近更新 更多