Retrieving JSON array in Javascript from PHP

后端 未结 3 563
我寻月下人不归
我寻月下人不归 2021-01-28 13:07

I am attempting to return a json encoded array to JS from PHP and i\'ve done so many times before but now i\'m getting a weird error. I am successfully getting the data and it\'

3条回答
  •  梦谈多话
    2021-01-28 13:42

    Maybe you need to send the correct HTTP header with your response. See here: https://stackoverflow.com/questions/267546/correct-http-header-for-json-file

提交回复
热议问题