I keep getting “Uncaught SyntaxError: Unexpected token o”

前端 未结 9 1827
隐瞒了意图╮
隐瞒了意图╮ 2020-11-22 01:46

I\'m trying to learn some html/css/javascript, so I\'m writing myself a teaching project.

The idea was to have some vocabulary contained in a json file which would t

9条回答
  •  自闭症患者
    2020-11-22 02:18

    Simply the response is already parsed, you don't need to parse it again. if you parse it again it will give you "unexpected token o" however you have to specify datatype in your request to be of type dataType='json'

提交回复
热议问题