小程序转发后中文乱码

发布于 7 年前作者 luoyan13325 次浏览最后编辑 7 年前来自 ask
  • 当前 Bug 的表现(可附上截图)

微信转发后,用手机点进来,发现了中文乱码的情况,应该是url传参内带有中文标识符导致的

  • 预期表现

802 (XX中文描述)

  • 复现路径

  • 提供一个最简复现 Demo

更新 !!!

我做了两次就好了?解决了页面分享后 url转中文乱码的问题

console.log(options)

options.name = decodeURIComponent(options.name)

console.log(options)

options.name = decodeURIComponent(options.name)

console.log(options)

0 回复
暂无回复