search

Home  >  Q&A  >  body text

javascript - Why does ajax return a piece of html instead of json?


The status code is 304! The response returns all the code I wrote in index.html
Please help me take a look

世界只因有你世界只因有你2804 days ago488

reply all(3)I'll reply

  • 我想大声告诉你

    我想大声告诉你2017-05-18 10:49:48

    It has nothing to do with ajax. Right-click on the highlighted area to open it and see what the problem is. It is probably that you wrote the wrong URL.
    Looking at this address, it should be the Douban API. This address has appeared countless times on SF, and there are also related problems. There are many. It seems that the webpack agent is misconfigured

    reply
    0
  • 滿天的星座

    滿天的星座2017-05-18 10:49:48

    Please confirm whether the request address is correct, such as http://api.douban.com/v2/movi...

    The correct request should be like this

    reply
    0
  • 習慣沉默

    習慣沉默2017-05-18 10:49:48

    There is a problem with the request, please DEBUG to take a look

    reply
    0
  • Cancelreply