首页
技术博客
登录
6mi
u
盘
搜
搜 索
技术博客
js判断网络状态
js判断网络状态
tech
2025-08-14
8
window.navigator.onLine 的值为true是连接,否则为断开网络。
if (window.navigator.onLine == true) { //网络链接正常 } else { //网络连接失败 };
转载请注明原文地址:https://tech.qufami.com/read-23646.html
最新回复
(
0
)