Monitor network connection failure

 

 

// network connection failure 
wx.getNetworkType ({ 
  Success (RES) { 
      IF (res.networkType == "none" ) {
      // event here to write to be executed 
       } 
  } 
})    

 

Guess you like

Origin www.cnblogs.com/XUYIYUAN/p/11297984.html