我有一个使用PhoneGap/Apache Cordova的应用程序,我已将自己的index.html页面插入到www文件夹中,但是当我运行应用程序时,它没有进入index.html页面,而是启动了闪屏界面,其中显示“设备已准备就绪”消息。我应该在哪里配置启动页面?
索引页:
索引页:
<html>
<head>
<script src="jquery-2.1.1.js"></script>
<link rel="stylesheet" href="jquery.mobile/jquery.mobile-1.4.4.min.css" />
<script src="jquery.mobile/jquery.mobile-1.4.4.min.js"></script>
</head>
<body>
<div data-role="header" data-theme="b" class="ui-bar ui-bar-b">
<h1>Welcome to my app!</h1>
</div>
Username <input type="text" id="username" name="Username"></input><br>
Password <input type="text" id="password" name="Password"></input>
<button id="submit">Submit</button>
<div data-role="footer" data-theme="b" class="ui-bar ui-bar-b"><h1>Placeholder</h1></div>
</body>
<style type="text/css">
body{
border:0;
}
</style>
</html>
index.html
文件中包含了index.js
。你需要提供更多细节。你能给我们展示一下你的index.html
文件吗?默认情况下,cordova应用程序会选择index.html
文件。index.html
文件是从platforms\android\res\xml\config.xml
配置文件(<content src="index.html" />
)中获取的。 - frankcordova prepare
或cordova build
命令? - Dawson Loudon