日期:2014-05-16  浏览次数:20409 次

js判断当前网络连接

if(window.navigator.onLine==true){
??? alert("已连接");??

?}else{
??alert("未连接");??

?}