收藏
回答

真机调试报错

框架类型 问题类型 操作系统 操作系统版本 手机型号 微信版本
小程序 Bug Android 8.1.0 小米8 8.0.7

工具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);

  }

})



回答关注问题邀请回答
收藏

2 个回答

  • 社区技术运营专员-Jahozheng
    社区技术运营专员-Jahozheng
    2021-08-09

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

    2021-08-09
    有用
    回复 1
    • --A 特惠玩
      --A 特惠玩
      2021-08-09
      你好,可以帮忙解答下我的提问嘛
      2021-08-09
      回复
  • WZH
    WZH
    2022-02-20

    所以这个问题解决了吗

    2022-02-20
    有用
    回复
登录 后发表内容