Uncaught SyntaxError: Unexpected token u in JSON at position 0 at JSON.parse

前端 未结 2 1776
一向
一向 2021-01-28 15:22

I\'m trying to learn JavaScript and I keep getting the error \"Uncaught SyntaxError: Unexpected token u in JSON at position 0 at JSON.parse\".

var ourRequest = n         


        
2条回答
  •  一个人的身影
    2021-01-28 15:28

    You've simply misspelt resoponseText - It should be responseText. You get the error because JavaScript ends up calling JSON.parse("undefined").

提交回复
热议问题