原因很简单,但是解决用了好长时间
我的参数:as1dfa54sd3f21as3d5f4asdf213a1sd5f4a3sdf1as3d54f=
重点在最后的 =
通过url传参页面
wx.scanCode({ onlyFromCamera: true, success: (res) => { wx.navigateTo({ url: '../../haha?id=' + escape(res.result), }) } })接值的页面方法
onLoad: function(options) { var that = this; app.post('*******', { content: unescape(options.id) }, function (response) { }) },重点在 传参时 escape()加密 方法,接参时 unescape()解码方法
微信小程序













