简体   繁体   English

无法退出PhoneGap Build应用程序

[英]Can't exit PhoneGap Build application

I've been doing a whole bunch of looking around, but I can't seem to find anything that's helped so far. 我一直在环顾四周,但到目前为止似乎找不到任何帮助。

Basically I can't exit my app no matter what I try. 基本上,无论尝试如何,我都无法退出我的应用程序。

I've tried: 我试过了:

navigator.app.exitApp();
&
app.exitApp();

On both: 双方:

$("#myButton").click(function(){..
&
<a id="close" onClick="myFunction">Exit</a>

I'm getting to the end of my ropes here, thoughts? 我在这里已经走到尽头了,有什么想法吗? Thanks in advance. 提前致谢。

I've managed to answer this myself. 我已经设法自己回答了。 My issue was that I was lacking a deviceready listener and instead calling the function in a document ready. 我的问题是我缺少设备就绪的侦听器,而是在准备就绪的文档中调用该函数。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM