JQuery JSON Calls To PHP WebService Always Runs “Error” Callback

后端 未结 4 1084
清酒与你
清酒与你 2020-12-11 11:38

I\'m having this headache now, since I\'ve been having this problem the whole day and, still, can\'t fix it. I\'ve looked on Google and StackOverflow for hours, tried many m

4条回答
  •  -上瘾入骨i
    2020-12-11 11:42

    Just change your response to text and then parse the text as JSON, example:

    var json = JSON.parse(data);

提交回复
热议问题