SyntaxError: Unexpected token < in JSON at position 0 at Object.parse (native) (AngularJS)

后端 未结 2 1773
傲寒
傲寒 2021-01-02 23:57

I\'m successfully saving my data into a json file with a php script (save-data.php) but I\'m unable to fetch it correctly with my get-data.php script.

Er

2条回答
  •  [愿得一人]
    2021-01-03 00:42

    Please Check your PHP file. In that might be unwanted echo is present so the json response could not get the exact response. I resolve my issue in this way. Hope this is helpful!!

提交回复
热议问题