syntax error: unexpected token <

后端 未结 15 2159
一整个雨季
一整个雨季 2020-11-29 02:20

I\'ve tried many things and there\'s no way, always appears this error I tried to use only one option to see if passed, changed the call of jquery, but not.

I looked

15条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-11-29 03:19

    This error can also arise from a JSON AJAX call to a PHP script that has an error in its code. Servers are often set up to return PHP error information formatted with html markup. This response is interpreted as invalid JSON, resulting in the "unexpected token <" AJAX error.

    To view the PHP error using Chrome, go to the Network panel in the web inspector, click the PHP file listed on the left side, and click on the Response tab.

提交回复
热议问题