wx.onNetworkStatusChange在真机上无效,没有被调用?
wx.onNetworkStatusChange(function (res) { console.log(res.isConnected)
console.log(res.networkType)})
wx.showToast({ title: res.networkType, icon: 'success',
duration: 2000}
})
}
无论是放在onLoad,onShow,都没调用