如何在Chrome中检查AJAX请求 [英] How do I check the AJAX request in Chrome
本文介绍了如何在Chrome中检查AJAX请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何检查Chrome是否已发出AJAX请求及其外观(例如,正文,标题等).通过浏览器,而不是代码.
How do I check if an AJAX request has been made in Chrome and how it looks like (e.g. the body, header and so on). Though the browser, not with code.
推荐答案
按照步骤
-
通过按
CTRL + SHIFT + I
打开开发人员控制台,然后转到Network
选项卡.
Open developer console by pressing
CTRL + SHIFT + I
and go toNetwork
tab.
单击XHR
选项卡(取消选中所有其他选项卡仅查看ajax),然后选择要检查的URL
(左侧).
Click on XHR
tab( uncheck all other tab to see only ajax) and select URL
you want to check(left side).
然后您可以从相应的选项卡(右侧)检查Header
,Cookies
,Response
等
Then You can inspect Header
, Cookies
, Response
etc from respective tab(right side)
Google chrome:
Google chrome:
Firefox:
Firefox:
这篇关于如何在Chrome中检查AJAX请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文