论坛首页 Web前端技术论坛

Sencha Touch2 判断网络是否中断

浏览 1477 次
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
作者 正文
   发表时间:2013-05-17  
if (Ext.device.Connection.isOnline()) {
    Ext.Msg.alert('You are currently connected via ' + Ext.device.Connection.getType());
} else {
    Ext.Msg.alert('You are not currently connected');
}
论坛首页 Web前端技术版

跳转论坛:
Global site tag (gtag.js) - Google Analytics