uniapp 跳转携带对象时Error: Unexpected end of JSON input
作者:互联网
报错原因:参数中有不识别的字符
解决办法:使用encodeURIComponent编码
uni.navigateTo({ url:'../goodDetail/goodDetail?obj='+encodeURIComponent(JSON.stringify(e)) })
this.obj= JSON.parse(decodeURIComponent(option.obj))
标签:uniapp,Unexpected,obj,goodDetail,JSON,报错,跳转,encodeURIComponent 来源: https://www.cnblogs.com/ysx1129/p/15791271.html