小程序判斷用戶在線狀態

在頁面的兩個生命週期組件裏面code onShow() { console.log('-----上線線') let info = wx.getStorageSync('chat_item') DB.collection('friends') .where({ _id: info._id }).get().then(res => {
相關文章
相關標籤/搜索