如题:wx.closeSocket只能用在wx.onSocketOpen里面,在生命周期onUnload中无法实现
收起
当前问题酬金
¥ 0 (可追加 ¥500)
支付方式
扫码支付
支付金额 15 元
提供问题酬金的用户不参与问题酬金结算和分配
支付即为同意 《付费问题酬金结算规则》
pageLifetimes: { show: function () { // 页面被展示 }, hide: function () { // 页面被隐藏 console.log("返回到projects页面"); if (this.data.timer) { this.setData({ timer: null }) } if (this.data.hasLinked) { wx.closeSocket(); this.setData({ checked: false }) } },
报告相同问题?