In Chrome, how can I see what AJAX requests are being made?

前端 未结 4 2044
独厮守ぢ
独厮守ぢ 2020-12-03 13:46

In Chrome, how can I see what AJAX requests are being made?

In Firefox I use Firebug and I can see any background AJAX request that are made.

4条回答
  •  感情败类
    2020-12-03 14:44

    1. Open the developer tools with Ctrl-Shift-i, or via the menu at Wrench/Tools/Developer tools:
      Chrome Developer Tools

    2. Click on the Network Tab:
      Network Tab

    3. Click on the "XHR" link at the bottom of the list to filter the results to only AJAX requests:
      XHR link

    4. Click on a request at the left to select it and use the "Headers", "Content", "Cookies" and "Timing" tabs for that request to see more details:
      A good XHR request to make :)

    You can use the separate window button in the bottom left of the tools to open the tools in their own window if you like.

提交回复
热议问题