标签:lse lin console else 判断 class div log OLE
if(window.navigator.onLine==true){ console.log(‘online‘); ... } else{ console.log(‘offline‘); ... }
JS判断在线离线
原文地址:https://www.cnblogs.com/suRimn/p/9511653.html