html5判断浏览器是否在线

来源:互联网 发布:a byte of python pdf 编辑:程序博客网 时间:2024/04/30 10:12
window.navigator.onLine
通过navigator对象的属性onLine,可以判断当前浏览器是否在线,返回的市布尔类型的值true或者false
0 0