真机调试报错
发布于 5 年前 作者 taoqiao 11062 次浏览 来自 官方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 回复

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

回到顶部