syntax error: unexpected token <

后端 未结 15 2164
一整个雨季
一整个雨季 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:00

    I suspect you're getting text/html encoding in response to your request so I believe the issue is:

    dataType : 'json',
    

    try changing it to

    dataType : 'html',
    

    From http://api.jquery.com/jQuery.get/:

    dataType Type: String The type of data expected from the server. Default: Intelligent Guess (xml, json, script, or html).

提交回复
热议问题