转发的页面在onLoad执行decodeURIComponent无效

发布于 7 年前作者 wei569401 次浏览最后编辑 7 年前来自 ask

A页面跳转到B页面时将参数encodeURIComponent:

B页面onLoad方法decodeURIComponent:

小程序内点击跳转进入B页面decode正常:

但是,转发出去的页面decode失败:

P.S. 写到onReady则都可以成功

1 回复
jiaqiang
jiaqiang1 楼5 年前

麻烦提供能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html