小程序初始化报错
来源:13-9 Request 案例(2)

慕姐2849259
2023-07-05
WAServiceMainContext.js?t=wechat&s=1688524886486&v=2.32.3:1 SyntaxError: Unexpected token B in JSON at position 0
at JSON.parse ()
at a (WASubContext.js?t=wechat&s=1688524886486&v=2.32.3:1)
at WASubContext.js?t=wechat&s=1688524886486&v=2.32.3:1
at k (WASubContext.js?t=wechat&s=1688524886486&v=2.32.3:1)
at beforeSuccess (WAServiceMainContext.js?t=wechat&s=1688524886486&v=2.32.3:1)
at Object.beforeSuccess (WAServiceMainContext.js?t=wechat&s=1688524886486&v=2.32.3:1)
at bu (WAServiceMainContext.js?t=wechat&s=1688524886486&v=2.32.3:1)
at Iu (WAServiceMainContext.js?t=wechat&s=1688524886486&v=2.32.3:1)
at WAServiceMainContext.js?t=wechat&s=1688524886486&v=2.32.3:1
at s (WAServiceMainContext.js?t=wechat&s=1688524886486&v=2.32.3:1)(env: macOS,mp,1.06.2306020; lib: 2.32.3)
刚开始没有这个错误,后面就出现了,在uni-request工程中注释掉其他request界面,按钮,script方法,刷新小程序还是报错,倒是不影响功能,但是小程序启动的时候看着不爽,也百度了一下,还是找不到问题。
请猴子老师帮忙看一下,谢谢了
1回答
-
coder_monkey
2023-07-05
上面已经告诉你了 语法错误 检查代码
00
相似问题