wx.request 得到的res数据,在开发工具中可以正常的console出来,但是在手机测试中显示undefined
代码如下:
success: function (res) {
redata = res.data
console.log(res.data['mobile'])
console.log(that.data.mobile)
if (that.data.mobile == res.data['mobile']) {
app.mobile = redata.mobile
app.username = redata.username
wx.showToast({
title: '登陆成功!',
icon: "success",
开发工具端运行结果截图如下:
手机端测试结果截图如下: 手机端验证不了 res.data['mobile'] 这个数组代码,但是开发工具端可以
这提了问题都没人解答吗?这破工具到处都是他妈的问题,同样的代码 开发工具端是好的,手机测试就有问题。什么玩意这是,提了问题还没人作答了