How do I debug jquery AJAX calls?

后端 未结 10 1345
悲&欢浪女
悲&欢浪女 2020-11-29 05:19

I have been working on trying to get AJAX to work with Jquery. My big issue so far has been that I don\'t really know how to figure out where I\'m making a mistake. I don\'t

10条回答
  •  -上瘾入骨i
    2020-11-29 05:45

    2020 answer with Chrome dev tools

    To debug any XHR request:

    1. Open Chrome DEV tools (F12)
    2. Right-click your Ajax url in the console

    for a GET request:

    • click Open in new tab

    for a POST request:

    1. click Reveal in Network panel

    2. In the Network panel:

      1. click on your request

      2. click on the response tab to see the details

提交回复
热议问题