document.write("onLine:" + navigator.onLine);//判断浏览器是否连接到网络上