在页面中放入即可  

    var first = null;  
    mui.back=function(){
    if(!first){  
         first = new Date().getTime();  
             mui.toast('再按一次退出应用');  
                setTimeout(function(){  
                    first = null;  
                },2000);  
              } else {  
                  if(new Date().getTime() - first < 2000){  
                     plus.runtime.quit();  
                   }  
              }  
       };

  

相关文章:

  • 2021-10-10
  • 2022-12-23
  • 2021-09-28
  • 2021-12-29
  • 2021-11-13
  • 2021-11-28
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-08-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-23
相关资源
相似解决方案