1 function isOnLine() {
2     var netStatus = "";
3     if (window.navigator.onLine == true) {
4         netStatus = "onLine";//网络链接正常
5     } else {
6         netStatus = "offLine";//网络连接失败
7     };
8     return netStatus;
9 };

 

相关文章:

  • 2021-07-24
  • 2021-12-16
  • 2021-12-25
  • 2021-09-17
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-05-21
  • 2022-02-03
  • 2022-12-23
  • 2022-12-23
  • 2022-02-19
相关资源
相似解决方案