微信小程序中当我们传递的参数到另外页面接收,当参数中出现中文时,就会出现乱码的问题,解决方案也很简单,就是利用decodeURIComponent de,对参数解码一下就好了。
使用decodeURIComponent 进行解码就好了
如:
onLoad: function (options) {
decodeURIComponent(options.data);
},
微信小程序中当我们传递的参数到另外页面接收,当参数中出现中文时,就会出现乱码的问题,解决方案也很简单,就是利用decodeURIComponent de,对参数解码一下就好了。
使用decodeURIComponent 进行解码就好了
如:
onLoad: function (options) {
decodeURIComponent(options.data);
},

