打开控制台
Uncaught SyntaxError: Unexpected token < in JSON at position 0 at JSON.parse (<anonymous>)
打开断点,发现ajax获取的数据是一串不认识的东西
Uncaught SyntaxError: Unexpected token < in JSON at position 0 at JSON.parse (<anonymous>)
打开network,然后查了一下是php错误
Uncaught SyntaxError: Unexpected token < in JSON at position 0 at JSON.parse (<anonymous>)
php中get、post获取方式,绝对记得写成 [’ '] | [ " "],不能写成括号。

相关文章:

  • 2021-05-12
  • 2021-07-03
  • 2021-06-07
  • 2021-12-14
  • 2022-12-23
  • 2021-07-26
  • 2022-12-23
  • 2021-10-06
猜你喜欢
  • 2021-10-24
  • 2022-12-23
  • 2022-12-23
  • 2021-05-17
  • 2021-05-09
  • 2022-12-23
  • 2021-09-04
相关资源
相似解决方案