Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

把wifi断开,但是状态没有改变 #2

Open
ljx2 opened this issue Dec 25, 2023 · 0 comments
Open

把wifi断开,但是状态没有改变 #2

ljx2 opened this issue Dec 25, 2023 · 0 comments

Comments

@ljx2
Copy link

ljx2 commented Dec 25, 2023

image

如图,把wifi关闭了,没有改变状态:

测试代码如下:

<html>
  <head>
    <script type="text/javascript" src="./online.js"></script>
  </head>

  <body>
    <script>
      var net = onlinenetwork({
          "time":1000,
          "url":"http://baidu.com/"
      })
      net.onLineHandler(function(){
          console.log("连上了!")
      })
      net.offLineHandler(function(){
          console.log("断开网络!")
      })
    </script>
  </body>
</html>

chrome: 版本 119.0.6045.124(正式版本) (64 位)

system: win10 x64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant