encodeURIComponent转换和decodeURIComponent解密
传参涉及中文转码可以用`xx?name=${encodeURIComponent(‘ 中文’)}
b页面decodeURIComponent(options.name)
ps:
本地存储和globaldata也都可以。
如webview传入的url后面参数丢失,也可以这样解决
··顿号为字符进阶的字符模板
encodeURIComponent转换和decodeURIComponent解密
传参涉及中文转码可以用`xx?name=${encodeURIComponent(‘ 中文’)}
b页面decodeURIComponent(options.name)
ps:
本地存储和globaldata也都可以。
如webview传入的url后面参数丢失,也可以这样解决
··顿号为字符进阶的字符模板
本文标题:原生小程序页面转码传参跳转
本文链接:https://www.haomeiwen.com/subject/cfwrhrtx.html
网友评论