真机调试报错

发布于 7 年前作者 taoqiao11215 次浏览最后编辑 7 年前来自 issues

工具RC 1.05.2107221

手机小米8 微信版本8.0.7 库2.19.0 如图真机报错

// app.js

App({

  onLaunch() {

    const that=this;

    if(wx.createTCPSocket)

    {

      console.log("可以调用");

      

      this.globalData.tongxin=wx.createTCPSocket();

      console.log(this.globalData.tongxin);

    }

  },

  globalData: {

    tongxin:null

  },

  onError(err)

  {

    console.log(err);

  }

})


1 回复
junluo
junluo1 楼4 年前

请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。