简体   繁体   中英

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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