wex5 监听物理后退键

参考网址http://wex5.com/cn/bbs/forum.php?mod=viewthread&tid=77277&extra=page%3D25

js中引入

CommonUtils = require("$UI/system/components/justep/common/utils");

加入js语句

CommonUtils.attachDoubleClickExitApp(function(){

                        if(/*当前显示的页面是在a页面,并且a页面中没有dialog弹出*/true){

                                return true;

                        }

                        return false;

                });

猜你喜欢

转载自zhitangrui2010.iteye.com/blog/2248540