jQuery AJAX Call to PHP Script with JSON Return

后端 未结 5 487
孤城傲影
孤城傲影 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:05

    try to send content type header from server use this just before echoing

    header('Content-Type: application/json');
    

提交回复
热议问题