if (AXY.AjaxNetStuff.Param.PreventAndroidReturnKey) {
$(window).on('popstate', function() {
if(confirm('要退出游戏吗?')){
window.close();
//var commonEvent = $dataCommonEvents[20];
//this.setupChild(commonEvent.list, 0);
//公共事件
}
else{
window.history.pushState(null, null, '#forward');
}
});
window.history.pushState(null, null, '#forward');
}
if (AXY.AjaxNetStuff.Param.PreventAndroidReturnKey) {
$(window).on('popstate', function() {
if(confirm('要退出游戏吗?')){
window.close();
//var commonEvent = $dataCommonEvents[20];
//this.setupChild(commonEvent.list, 0);
//公共事件
}
else{
window.history.pushState(null, null, '#forward');
}
});
window.history.pushState(null, null, '#forward');
}