【问题标题】:JQuery Mobile: navigator.app.exitapp() not working on Android devicesJQuery Mobile:navigator.app.exitapp() 在 Android 设备上不起作用
【发布时间】:2013-01-17 03:17:23
【问题描述】:

我正在使用 PhoneGap 框架来开发移动应用程序。我想添加一个按钮退出,使用 navigator.app.exitapp(),它在我的模拟器上运行良好,但在我的平板电脑上不运行。

 <script type="text/javascript">

 function deconec()
 {
     localStorage.clear(); 
     navigator.app.exitApp();
 }

 </script>

 <a href="" data-role="button" data-icon="home" onclick="deconec()">Quitter</a>

【问题讨论】:

    标签: cordova jquery-mobile


    【解决方案1】:

    PhoneGap 可能不适用于您的平板电脑。我在使用 Kindle Fire HD 时遇到了问题。该应用程序可以在我的手机上正常运行,但不能在我的 Kindle 上运行。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-03-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-12-24
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多