<script type="text/javascript" charset="utf-8" src="cordova-2.0.0.js"></script>
<script type="text/javascript" charset="utf-8">
// Call onDeviceReady when Cordova is loaded.
//
// At this point, the document has loaded but cordova-2.0.0.js has not.
// When Cordova is loaded and talking with the native device,
// it will call the event `deviceready`.
//
function onLoad() {
document.addEventListener("deviceready", onDeviceReady, false);
}
// Cordova is loaded and it is now safe to call Cordova methods
//
function onDeviceReady() {
// Register the event listener
document.addEventListener("backbutton", onBackKeyDown, false);
}
// Handle the back button
//
function onBackKeyDown() {
}
确保在androidmenifest.xml文件必须包含Android版本:targetSdkVersion比Android更大:的minSdkVersion
我有同样的问题。你能更详细地解释一下你的意思吗?我没有空格...什么数据网址?我不认为在这种情况下使用一个。 – SpiRail
@SpiRail我在一周或两周前更新了问题 - 我不记得更新问题是否向通知过的人发送了通知。无论如何,我编辑的问题是否能为您提供足够的额外信息? – CoatedMoose
嗨,对不起,我从来没有回到你身边。我不再使用后退按钮。也许如果我再次需要它,请看看这里。 – SpiRail