小程序判断用户在线状态

在页面的两个生命周期组件里面code onShow() { console.log('-----上线线') let info = wx.getStorageSync('chat_item') DB.collection('friends') .where({ _id: info._id }).get().then(res => {
相关文章
相关标签/搜索