📜  反应检查互联网连接 - Javascript代码示例

📅  最后修改于: 2022-03-11 15:03:41.088000             🧑  作者: Mango

代码示例2
// check the current Connection State
   console.log(navigator.onLine)

// true - When internet connection is detected.
// false - When internet connection is not detected.