[bug] Unrecognized token 'code': was expecting (JSON String, Number, Array, Object,'true', 'false' or 'null')

JSON格式有误,需用JSON.stringify()函数转换一下

参考

https://www.cnblogs.com/sunyanblog/p/13788740.html

https://www.runoob.com/js/javascript-json-stringify.html

posted @ 2021-02-20 22:34  cxc1357  阅读(4868)  评论(0编辑  收藏  举报