jQuery AJAX Call to PHP Script with JSON Return

后端 未结 5 485
孤城傲影
孤城傲影 2020-11-27 04:40

I\'ve been smashing my head against a brick wall with this one, i\'ve tried loads of the solutions on stackoverflow but can\'t find one that works!

Basically when I

5条回答
  •  失恋的感觉
    2020-11-27 05:01

    I recommend you use:

    var returnedData = JSON.parse(data);
    

    to convert the JSON string (if it is just text) to a JavaScript object.

提交回复
热议问题