Viewing HTML response from Ajax call through Chrome Developer tools?

后端 未结 6 2013
生来不讨喜
生来不讨喜 2021-01-03 23:33

So in my javascript I\'m making an ajax call to a service on my website. Whoops, something fails. No problem. Here\'s what I\'d do in Firefox:

  1. Open the fire
6条回答
  •  孤街浪徒
    2021-01-04 00:06

    Yes, the easiest way is to use the Network tab in the Developer Tools.

    1. Ctrl+Shift+I to open the Developer Tools (or use the menu bar at the top: "View -> Developer -> Developer Tools")
    2. Go to "Network" tab
    3. Refresh your current page
    4. Scroll down to the Ajax call on the left and click
    5. The main menu will show several tabs (usually defaulting to Preview). Click on "Headers" and you should see the Request and Response header information.

提交回复
热议问题