0
Sencha touch 2中的Ext.device.connection可以被下面的一些自定義代碼覆蓋。 基本上在這裏我們試圖檢查在應用程序級的互聯網連接,將用戶重定向到普通頁面Ext.device.connection覆蓋(添加全球Listerner)
Ext.define('SLS.BRND.WEB.common.CustomConnection', {
override : 'Ext.device.connection',
constructor : function() {
var me = this;
me.callParent(arguments);
me.on('exception', 'checkSessionTimeout', me);
},
checkSessionTimeout : function() {
alert('this');
}
});
嘿,這是什麼問題?你的代碼段是否有效? – olegtaranenko 2012-08-10 10:42:41
它不起作用 – Ram 2012-08-10 11:03:16