【已解决】Uncaught SyntaxError: Unexpected token o in JSON at position 1
Uncaught SyntaxError: Unexpected token o in JSON at position 1 原因是用ThinkPHP内置方法 $this->ajaxReturn($imgs, 'JSON');返回的数据已经是object类型,不需要再进行JSON.parse()转换了,可以直接当作对象使用。我的公众号,欢迎订阅! ...