Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

报错Uncaught SyntaxError: Unexpected token ‘o‘, “[object Obj“... is not valid JSON_python学习站_yana的博客-CSDN博客 #211

Open
xiaodongxier opened this issue Sep 11, 2023 · 0 comments

Comments

@xiaodongxier
Copy link
Owner

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。

解决:

                    results = JSON.stringify(results);
                    data = JSON.parse(results);
                    console.log(data);

参考:
https://reactgo.com/javascript-fix-unexpected-token-error/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant