- 小程序版本库切到2.14.4带来一堆报错?
[图片][图片] 切换到2.14.4版本一下,就没有问题,没有报错?这个是为什么
2021-01-29 - 预览和真机调试时的函数返回结果不同
- 当前 Bug 的表现(可附上截图) [代码] [代码][代码]onShow: [代码][代码]function[代码] [代码]() {[代码][代码] [代码][代码]let that = [代码][代码]this[代码][代码] [代码][代码]let baseobj = { appid: [代码][代码]"XXXXXXXX"[代码] [代码]}[代码][代码] [代码][代码]let param = JSON.stringify(baseobj)[代码][代码] [代码][代码]param = app.Encrypt(param)[代码][代码] [代码][代码]let baseurl = [代码][代码]"xxxxxxxxxxxxxxx?param="[代码] [代码]+ param[代码][代码] [代码][代码]wx.request({[代码][代码] [代码][代码]url: baseurl,[代码][代码] [代码][代码]method: [代码][代码]"GET"[代码][代码],[代码][代码] [代码][代码]header: {[代码][代码] [代码][代码]'content-type'[代码][代码]: [代码][代码]'application/json'[代码][代码] [代码][代码]},[代码][代码] [代码][代码]success: [代码][代码]function[代码] [代码](res) {[代码][代码] [代码][代码]that.setData({[代码][代码] [代码][代码]globalColor: [代码][代码]'red'[代码][代码],[代码][代码] [代码][代码]test: JSON.stringify(res.data)[代码][代码] [代码][代码]})[代码][代码] [代码][代码]},[代码][代码] [代码][代码]fail: [代码][代码]function[代码][代码](fail) {[代码][代码] [代码][代码]that.setData({[代码][代码] [代码][代码]globalColor: [代码][代码]'#3d7eff'[代码][代码],[代码][代码] [代码][代码]test: JSON.stringify(fail)[代码][代码] [代码][代码]})[代码][代码] [代码][代码]}[代码][代码] [代码][代码]})[代码][代码]}[代码][图片] 这个是页面的报错信息 => 首先开发者工具以及真机调试的时候是success没问题的; 点击预览扫码的时候/或者上传到体验版扫码体验店的时候都是这个错误信息
2019-07-29