yagamil

浏览器的 navigator.onLine 是根据什么来判断的?

  •  
  •   yagamil · Dec 3, 2024 · 1270 views
    This topic created in 689 days ago, the information mentioned may be changed or developed.
    无论是否断网,它的值一直为 true 。
    断网几分钟,也为 true 。

    唯一能 false 的,是手动在 F12 里面,把浏览器改为 offline

    实际应用场景下,这个值是根据什么来判断的?
    1 replies  •  2024-12-06 17:05:59 +08:00
    humbass
        1
    humbass  
       Dec 6, 2024   ❤️ 1
    网卡禁用、网线拔掉都是 false
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1239 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 20:59 · PVG 04:59 · LAX 13:59 · JFK 16:59
    ♥ Do have faith in what you're doing.