我是phonegap的新手,但我正赶上Quickly。我已经在网上建立了一个phonegap apk,并在我的手机上运行它,但在我的主页加载之前,我得到一个带有导航栏的电话空白页面,上面写着“你好世界”,不幸的是我发现我没有在网上找到答案来帮助我。请问我怎么能删除这个?
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="format-detection" content="telephone=no" />
<meta name="msapplication-tap-highlight" content="no" />
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width" />
<!-- <meta http-equiv="Content-Security-Policy" content="default-src 'self' data: gap: 'unsafe-inline' https://ssl.gstatic.com; style-src 'self' 'unsafe-inline'; media-src *" /> -->
<link rel="stylesheet" type="text/css" href="css/index.css" />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<!-- Bootstrap core CSS -->
<link rel="stylesheet" href="css/MBD/bootstrap.min.css">
<!-- Material Design Bootstrap -->
<link rel="stylesheet" href="css/MBD/mdb.min.css">
<title>Papyfire v.1</title>
</head>
<body style="background-color: #ffffff; ">
<div class="row">
<div class="card col-sm-4 mr-2">
<h1>PhoneGap</h1>
<div id="deviceready" class="blink">
<p class="event listening gradient-purple">Connecting to Device</p>
<p class="event received">Device is Ready</p>
</div>
</div>
</div>
<script type="text/javascript" src="cordova.js"></script>
<script type="text/javascript" src="js/index.js"></script>
<script src="js/MBD/jquery-3.2.1.min.js"></script>
<!-- Bootstrap tooltips -->
<script type="text/javascript" src="js/MBD/popper.min.js"></script>
<!-- Bootstrap core JavaScript -->
<script type="text/javascript" src="js/MBD/bootstrap.js"></script>
<!-- MDB core JavaScript -->
<script type="text/javascript" src="js/MBD/mdb.min.js"></script>
<script type="text/javascript">
app.initialize();
setTimeout(function(){
window.location="main.html";
}, 3000);
</script>
</body>
</html>
答案 0 :(得分:0)
使用app构建的phonegap config.xml文件具有默认的起始页面index.html,将主页面名称更改为index.html。