检查网络状态
摘要:navigator.onLine 检查网络状态的方法返回true or false if(navigator.onLine){ console.log("链接到网络") return true }else{ console.log("当前网络无链接") return...
阅读全文
posted @ 2018-12-07 09:36
posted @ 2018-12-07 09:36