Chrome浏览器:点击网页上的按钮,即可了解发送了什么请求 [英] Chrome: find out what request is sent when click a button on the web

查看:307
本文介绍了Chrome浏览器:点击网页上的按钮,即可了解发送了什么请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以打开开发人员工具->网络-> XHR"来查找当前页面上的所有请求,但是现在我想弄清楚的是,当我在其中键入内容时,有一个搜索"按钮.在文本框中单击搜索"按钮,然后在Chrome中打开一个新标签,这意味着当我单击搜索"按钮时,开发人员工具"无法显示已提出的请求.

I could open "developer tools -> Network -> XHR" to find all request made on the current page, but what I want to figure out now is that, there is a button "Search", when I type something in the textbox and click "Search" button, a new tab is opened in Chrome, and that means the "developer tools" cannot show what request has been made when I click the "Search" button.

有没有办法找出由搜索"按钮发起的请求?

Is there any way to find out the request initiated by the "Search" button?

推荐答案

在网络"选项卡中,有一个Preserve log复选框,用于在重新加载和页面导航之间保留请求.单击XHR以过滤请求.单击列表中的项目后,您可以在右侧面板上查看请求标头

In the Network tab, there is a Preserve log checkbox, which persists the requests between reloads and page navigation. Click on XHR to filter the requests. You can view the request headers on the right-side panel after clicking on the item in the list

这篇关于Chrome浏览器:点击网页上的按钮,即可了解发送了什么请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆